Skip to content

Commit

Permalink
BuildSystem: Add DragonFly BSD.
Browse files Browse the repository at this point in the history
ASTERISK-27820

Change-Id: I310896143e94d65da1c2be3bb448204a8b86d557
  • Loading branch information
traud committed Apr 20, 2018
1 parent a9c74fd commit efe40ff
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion bridges/bridge_softmix/include/bridge_softmix_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#include <fftw3.h>
#endif

#if defined(__Darwin__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__CYGWIN__)
#if defined(__Darwin__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__CYGWIN__)
#include <float.h>
#else
#include <values.h>
Expand Down
2 changes: 1 addition & 1 deletion channels/chan_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

#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>
Expand Down
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -4653,7 +4653,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
Expand Down Expand Up @@ -4742,7 +4742,7 @@ HOST_OS=${host_os}
PBX_WINARCH=0

case "${host_os}" in
freebsd*)
dragonfly*|freebsd*)
OSARCH=FreeBSD
;;
netbsd*)
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -152,7 +152,7 @@ AC_SUBST(HOST_OS)
PBX_WINARCH=0

case "${host_os}" in
freebsd*)
dragonfly*|freebsd*)
OSARCH=FreeBSD
;;
netbsd*)
Expand Down
2 changes: 1 addition & 1 deletion include/asterisk/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main/asterisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
#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)
Expand Down
2 changes: 1 addition & 1 deletion main/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2423,7 +2423,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>

Expand Down
2 changes: 1 addition & 1 deletion res/res_http_post.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#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

Expand Down
2 changes: 1 addition & 1 deletion utils/muted.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion utils/streamplayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit efe40ff

Please sign in to comment.