OSDN Git Service

Only #include sys/mman.h if configure set HAVE_SYS_MMAN_H.
authorDiego Biurrun <diego@biurrun.de>
Thu, 20 Mar 2008 19:07:24 +0000 (19:07 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 20 Mar 2008 19:07:24 +0000 (19:07 +0000)
Originally committed as revision 12521 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavdevice/audio.c
libavdevice/bktr.c
libavdevice/dv1394.c
libavdevice/v4l.c
libavdevice/v4l2.c
libavdevice/x11grab.c

index 87ffdef..6cd3313 100644 (file)
@@ -31,7 +31,9 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <sys/time.h>
 
 #define AUDIO_BLOCK_SIZE 4096
index 0ea8dfb..7259f5b 100644 (file)
@@ -39,7 +39,9 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <sys/time.h>
 #include <signal.h>
 
index 8e2e2f6..85836f1 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "config.h"
 #include <unistd.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <sys/ioctl.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <sys/poll.h>
 #include <sys/time.h>
 #include <time.h>
index 5d57a2b..75ee6a3 100644 (file)
  * License along with FFmpeg; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
+
+#include "config.h"
 #include "avformat.h"
 #include "dsputil.h"
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <sys/time.h>
 #define _LINUX_TIME_H 1
 #include <linux/videodev.h>
index 528acc4..ab5e685 100644 (file)
  * License along with FFmpeg; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
+
+#include "config.h"
 #include "avformat.h"
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <sys/time.h>
 #include <asm/types.h>
 #include <linux/videodev2.h>
index bb08dea..04e3190 100644 (file)
  * and Edouard Gomez <ed.gomez@free.fr>.
  */
 
+#include "config.h"
 #include "avformat.h"
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>
+#endif
 #include <sys/time.h>
 #define _LINUX_TIME_H 1
 #include <time.h>