Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2010-03-12 20:28:02 +0300
committerDiego Biurrun <diego@biurrun.de>2010-03-12 20:28:02 +0300
commit2138dc99fc2623117c3336d94b3164d18dd0f8b2 (patch)
tree30f7ad80fa2e9f8ff55b146524c5da969e73834e
parent2c4bc23e7a342cf02188c1dcdfd3fb3ee7d67b11 (diff)
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. Originally committed as revision 22486 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure1
-rw-r--r--libavdevice/bktr.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index db68465834..60834ca0fb 100755
--- a/configure
+++ b/configure
@@ -2151,6 +2151,7 @@ case $target_os in
netbsd)
oss_indev_extralibs="-lossaudio"
oss_outdev_extralibs="-lossaudio"
+ add_cppflags -D_XOPEN_SOURCE=600
;;
openbsd)
enable malloc_aligned
diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c
index 744fa0f05a..e294ee49a4 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -25,7 +25,6 @@
*/
#define _BSD_SOURCE 1
-#define _NETBSD_SOURCE
#include "libavformat/avformat.h"
#if HAVE_DEV_BKTR_IOCTL_METEOR_H && HAVE_DEV_BKTR_IOCTL_BT848_H