提交 b0067549 编写于 作者: D Diego Biurrun

Only #include sys/mman.h if configure set HAVE_SYS_MMAN_H.

Originally committed as revision 12521 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 721da10a
...@@ -31,7 +31,9 @@ ...@@ -31,7 +31,9 @@
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#include <sys/time.h> #include <sys/time.h>
#define AUDIO_BLOCK_SIZE 4096 #define AUDIO_BLOCK_SIZE 4096
......
...@@ -39,7 +39,9 @@ ...@@ -39,7 +39,9 @@
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#include <sys/time.h> #include <sys/time.h>
#include <signal.h> #include <signal.h>
......
...@@ -19,11 +19,14 @@ ...@@ -19,11 +19,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h"
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#include <sys/poll.h> #include <sys/poll.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
......
...@@ -18,12 +18,16 @@ ...@@ -18,12 +18,16 @@
* License along with FFmpeg; if not, write to the Free Software * License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h"
#include "avformat.h" #include "avformat.h"
#include "dsputil.h" #include "dsputil.h"
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#include <sys/time.h> #include <sys/time.h>
#define _LINUX_TIME_H 1 #define _LINUX_TIME_H 1
#include <linux/videodev.h> #include <linux/videodev.h>
......
...@@ -26,11 +26,15 @@ ...@@ -26,11 +26,15 @@
* License along with FFmpeg; if not, write to the Free Software * License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h"
#include "avformat.h" #include "avformat.h"
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#include <sys/time.h> #include <sys/time.h>
#include <asm/types.h> #include <asm/types.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
......
...@@ -35,11 +35,14 @@ ...@@ -35,11 +35,14 @@
* and Edouard Gomez <ed.gomez@free.fr>. * and Edouard Gomez <ed.gomez@free.fr>.
*/ */
#include "config.h"
#include "avformat.h" #include "avformat.h"
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
#endif
#include <sys/time.h> #include <sys/time.h>
#define _LINUX_TIME_H 1 #define _LINUX_TIME_H 1
#include <time.h> #include <time.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册