Merge "BuildSystem: Add DragonFly BSD." into 13

This commit is contained in:
George Joseph
2018-04-30 09:06:45 -05:00
committed by Gerrit Code Review
10 changed files with 15 additions and 11 deletions

View File

@@ -13,6 +13,10 @@ check_for_app() {
# On Linux, environment variables tell which one to use.
case `uname -sr` in
DragonFly*)
MY_AC_VER=
MY_AM_VER=
;;
FreeBSD*)
MY_AC_VER=
MY_AM_VER=

View File

@@ -53,7 +53,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#ifdef __linux
#include <linux/soundcard.h>
#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__GLIBC__) || defined(__sun)
#elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__CYGWIN__) || defined(__GLIBC__) || defined(__sun)
#include <sys/soundcard.h>
#else
#include <soundcard.h>

4
configure vendored
View File

@@ -4638,7 +4638,7 @@ case "${host_os}" in
CPPFLAGS=-I/usr/pkg/include
LDFLAGS=-L/usr/pkg/lib
;;
freebsd*)
dragonfly*|freebsd*)
ac_default_prefix=/usr/local
CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib
@@ -4727,7 +4727,7 @@ HOST_OS=${host_os}
PBX_WINARCH=0
case "${host_os}" in
freebsd*)
dragonfly*|freebsd*)
OSARCH=FreeBSD
;;
netbsd*)

View File

@@ -67,7 +67,7 @@ case "${host_os}" in
CPPFLAGS=-I/usr/pkg/include
LDFLAGS=-L/usr/pkg/lib
;;
freebsd*)
dragonfly*|freebsd*)
ac_default_prefix=/usr/local
CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib
@@ -152,7 +152,7 @@ AC_SUBST(HOST_OS)
PBX_WINARCH=0
case "${host_os}" in
freebsd*)
dragonfly*|freebsd*)
OSARCH=FreeBSD
;;
netbsd*)

View File

@@ -31,7 +31,7 @@
#ifndef __BYTE_ORDER
#ifdef __linux__
#include <endian.h>
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__APPLE__)
#if defined(__OpenBSD__)
#include "asterisk/compat.h"
#endif

View File

@@ -172,7 +172,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/vmmeter.h>
#if defined(__FreeBSD__)
#if defined(__FreeBSD__) || defined(__DragonFly__)
#include <vm/vm_param.h>
#endif
#if defined(HAVE_SWAPCTL)

View File

@@ -2506,7 +2506,7 @@ char *ast_eid_to_str(char *s, int maxlen, struct ast_eid *eid)
return os;
}
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__Darwin__)
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__Darwin__)
#include <ifaddrs.h>
#include <net/if_dl.h>

View File

@@ -38,7 +38,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <sys/stat.h>
#include <fcntl.h>
#include <gmime/gmime.h>
#if defined (__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__Darwin__)
#if defined (__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__Darwin__)
#include <libgen.h>
#endif

View File

@@ -55,7 +55,7 @@
#include <sys/types.h>
#include <pwd.h>
#include <sys/stat.h>
#elif defined(__linux__) || defined(__FreeBSD__) || defined(__GLIBC__)
#elif defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__GLIBC__)
#include <sys/soundcard.h>
#endif
#include <stdio.h>

View File

@@ -53,7 +53,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__Darwin__) || defined(__CYGWIN__)
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__Darwin__) || defined(__CYGWIN__) || defined(__DragonFly__)
#include <netinet/in.h>
#endif
#include <sys/time.h>