From: Reinhard Tartler Date: Sat, 14 May 2011 14:10:30 +0000 (+0200) Subject: configure: use same CPPFLAGS in kFreeBSD as Linux X-Git-Tag: android-x86-4.4-r1~12310^2~1303 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c1f54478050279663217fe5ffa4bc90f60e7030d;p=android-x86%2Fexternal-ffmpeg.git configure: use same CPPFLAGS in kFreeBSD as Linux 046f081b46c8479820409cf8f530b988221bd15b reorganized the CPPFLAGS to no longer add -D_POSIX_C_SOURCE unconditionally, but only on systems (e.g., glibc based ones) that require it. As kFreeBSD uses glibc, it needs to be treated similar. Additionally, _BSD_SOURCE is turned on to enable some additional types such as caddr_t, which are normally enabled on BSD but not with glibc. --- diff --git a/configure b/configure index d527ed1974..970ec5669b 100755 --- a/configure +++ b/configure @@ -2487,6 +2487,7 @@ case $target_os in enable dos_paths ;; gnu/kfreebsd) + add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE ;; gnu) ;;