Browse code

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.

Reinhard Tartler authored on 2011/05/14 23:10:30
Showing 1 changed files
... ...
@@ -2487,6 +2487,7 @@ case $target_os in
2487 2487
         enable dos_paths
2488 2488
         ;;
2489 2489
     gnu/kfreebsd)
2490
+        add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
2490 2491
         ;;
2491 2492
     gnu)
2492 2493
         ;;