OSDN Git Service

Add _NETBSD_SOURCE definition to fix compilation on NetBSD.
authorJorge Acereda <jacereda@brainstorm.es>
Wed, 3 Mar 2010 09:16:45 +0000 (09:16 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 3 Mar 2010 09:16:45 +0000 (09:16 +0000)
NetBSD is unlikely to fix their headers and the FATE box passes it
as -D_NETBSD_SOURCE on the command line anyway. In this case, it's
better to keep the hack well-contained within this file.
Closes issue 886.
patch by Jorge Acereda, jacereda brainstorm es

Originally committed as revision 22164 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavdevice/bktr.c

index 33744aa..744fa0f 100644 (file)
@@ -25,6 +25,8 @@
  */
 
 #define _BSD_SOURCE 1
+#define _NETBSD_SOURCE
+
 #include "libavformat/avformat.h"
 #if HAVE_DEV_BKTR_IOCTL_METEOR_H && HAVE_DEV_BKTR_IOCTL_BT848_H
 # include <dev/bktr/ioctl_meteor.h>