On Mon, Aug 22, 2011 at 01:48:58PM +0200, Reinhard Tartler wrote:
> Shouldn't BSD_SOURCE be added to other platforms, such as kfreebsd and
> hurd, as well then? They all use glibc after all.

You already enabled _BSD_SOURCE on kFreeBSD (commit
c1f54478050279663217fe5ffa4bc90f60e7030d), but you're probably right
that it should be enabled on the Hurd as well, although I have no idea
whether it's set up to properly deny the ability to execute code from
non-executable pages.

diff --git a/configure b/configure
index 9c6ce0a..9e62243 100755
--- a/configure
+++ b/configure
@@ -2464,7 +2464,7 @@ case $target_os in
         add_cppflags -U__STRICT_ANSI__
         ;;
     linux)
-        add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
+        add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
         enable dv1394
         ;;
     irix*)
@@ -2498,7 +2498,7 @@ case $target_os in
         add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
         ;;
     gnu)
-        add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
+        add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
         ;;
     qnx)
         add_cppflags -D_QNX_SOURCE

-- 
Colin Watson                                       [[email protected]]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to