Enable automatic build support on FreeBSD

Thanks-to: <royj@yandex.ru>
This commit is contained in:
Travis Cross 2013-03-17 18:35:45 +00:00
parent 950a7b7a9a
commit e9e5f00de7
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,6 @@ case $target_os in
;;
*freebsd2* | *freebsd* | *netbsd* | *openbsd* | *osf[12]*)
echo "------- START libzrtp configuration for BSD platform ------------"
AC_DEFINE(PLATFORM,ZP_BSD,BSD platform)
;;
hpux* | irix* | linuxaout* | linux* | osf* | solaris2* | sunos4*)
echo "------- START libzrtp configuration for Linux platform ------------"

View File

@ -19,6 +19,8 @@
#if !defined(ZRTP_PLATFORM)
# if defined(ANDROID_NDK)
# define ZRTP_PLATFORM ZP_ANDROID
# elif defined(__FreeBSD__)
# define ZRTP_PLATFORM ZP_BSD
# elif defined(linux) || defined(__linux)
# include <linux/version.h>
# define ZRTP_PLATFORM ZP_LINUX