diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-03-20 19:07:24 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-03-20 19:07:24 +0000 |
commit | b00675499c6d9327aa7ec6f9f8d9d7758d1d3080 (patch) | |
tree | 72b534dde79c61356acd1cd09c22fcc705a4fe5a /libavdevice/x11grab.c | |
parent | 721da10aeb929964a21890aae0b36b2fe07b1bd2 (diff) | |
download | ffmpeg-b00675499c6d9327aa7ec6f9f8d9d7758d1d3080.tar.gz |
Only #include sys/mman.h if configure set HAVE_SYS_MMAN_H.
Originally committed as revision 12521 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/x11grab.c')
-rw-r--r-- | libavdevice/x11grab.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index bb08dea91f..04e3190962 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -35,11 +35,14 @@ * 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> |