Commit 56a1133e authored by diego's avatar diego

Add _XOPEN_SOURCE=600 to CPPFLAGS on NetBSD.

This make NetBSD compile out of the box at the cost of a hack, but a
locally contained one that is preferable to the one used in the wild.
Currently the NetBSD FATE box adds -D_NETBSD_SOURCE to CPPFLAGS to work
around broken system headers. Since it is unlikely for NetBSD to fix their
headers, it is better to use a standard flag instead of a system-specific one.

As a sideeffect, this allows getting rid of a local _NETBSD_SOURCE definition.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22486 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d0340fa1
...@@ -2151,6 +2151,7 @@ case $target_os in ...@@ -2151,6 +2151,7 @@ case $target_os in
netbsd) netbsd)
oss_indev_extralibs="-lossaudio" oss_indev_extralibs="-lossaudio"
oss_outdev_extralibs="-lossaudio" oss_outdev_extralibs="-lossaudio"
add_cppflags -D_XOPEN_SOURCE=600
;; ;;
openbsd) openbsd)
enable malloc_aligned enable malloc_aligned
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
*/ */
#define _BSD_SOURCE 1 #define _BSD_SOURCE 1
#define _NETBSD_SOURCE
#include "libavformat/avformat.h" #include "libavformat/avformat.h"
#if HAVE_DEV_BKTR_IOCTL_METEOR_H && HAVE_DEV_BKTR_IOCTL_BT848_H #if HAVE_DEV_BKTR_IOCTL_METEOR_H && HAVE_DEV_BKTR_IOCTL_BT848_H
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment