---
This builds and passes tests on my linux system. However, some
systems (e.g. BSD) are known to sometimes require explicit inclusion
of headers beyond what the standard mentions, so it would be great
if someone could test this on some such systems.
---
avconv.c | 1 -
avserver.c | 1 -
libavdevice/dv1394.c | 2 --
libavdevice/fbdev.c | 1 -
libavdevice/oss_audio.c | 2 --
libavdevice/v4l2.c | 1 -
libavformat/rtpproto.c | 1 -
libavformat/rtsp.c | 1 -
libavformat/rtspenc.c | 1 -
libavformat/sapdec.c | 1 -
libavformat/sctp.c | 1 -
libavformat/tcp.c | 1 -
libavformat/udp.c | 1 -
libavutil/parseutils.c | 1 -
14 files changed, 16 deletions(-)
diff --git a/avconv.c b/avconv.c
index 9da8d8a..7abf10d 100644
--- a/avconv.c
+++ b/avconv.c
@@ -55,7 +55,6 @@
#if HAVE_SYS_RESOURCE_H
#include <sys/types.h>
-#include <sys/time.h>
#include <sys/resource.h>
#elif HAVE_GETPROCESSTIMES
#include <windows.h>
diff --git a/avserver.c b/avserver.c
index 02bc3b9..9236b03 100644
--- a/avserver.c
+++ b/avserver.c
@@ -51,7 +51,6 @@
#include <poll.h>
#endif
#include <errno.h>
-#include <sys/time.h>
#include <time.h>
#include <sys/wait.h>
#include <signal.h>
diff --git a/libavdevice/dv1394.c b/libavdevice/dv1394.c
index f48d2b1..2bb65b6 100644
--- a/libavdevice/dv1394.c
+++ b/libavdevice/dv1394.c
@@ -26,8 +26,6 @@
#include <poll.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
-#include <sys/time.h>
-#include <time.h>
#include "libavutil/log.h"
#include "libavutil/opt.h"
diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c
index f79893a..d789d41 100644
--- a/libavdevice/fbdev.c
+++ b/libavdevice/fbdev.c
@@ -32,7 +32,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
-#include <sys/time.h>
#include <sys/mman.h>
#include <time.h>
#include <linux/fb.h>
diff --git a/libavdevice/oss_audio.c b/libavdevice/oss_audio.c
index e592c32..60432c5 100644
--- a/libavdevice/oss_audio.c
+++ b/libavdevice/oss_audio.c
@@ -33,8 +33,6 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
-#include <sys/time.h>
-#include <sys/select.h>
#include "libavutil/log.h"
#include "libavutil/opt.h"
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index b9941d2..2154b63 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -42,7 +42,6 @@
#else
#include <linux/videodev2.h>
#endif
-#include <time.h>
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index 881a188..e70b89e 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -39,7 +39,6 @@
#if HAVE_POLL_H
#include <sys/poll.h>
#endif
-#include <sys/time.h>
#define RTP_TX_BUF_SIZE (64 * 1024)
#define RTP_RX_BUF_SIZE (128 * 1024)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index a70ea04..76b5df8 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -30,7 +30,6 @@
#include "avformat.h"
#include "avio_internal.h"
-#include <sys/time.h>
#if HAVE_POLL_H
#include <poll.h>
#endif
diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c
index ad6e485..c7fb2fa 100644
--- a/libavformat/rtspenc.c
+++ b/libavformat/rtspenc.c
@@ -21,7 +21,6 @@
#include "avformat.h"
-#include <sys/time.h>
#if HAVE_POLL_H
#include <poll.h>
#endif
diff --git a/libavformat/sapdec.c b/libavformat/sapdec.c
index 46a4b96..e377cef 100644
--- a/libavformat/sapdec.c
+++ b/libavformat/sapdec.c
@@ -30,7 +30,6 @@
#if HAVE_POLL_H
#include <poll.h>
#endif
-#include <sys/time.h>
struct SAPState {
URLContext *ann_fd;
diff --git a/libavformat/sctp.c b/libavformat/sctp.c
index 817b004..07de498 100644
--- a/libavformat/sctp.c
+++ b/libavformat/sctp.c
@@ -39,7 +39,6 @@
#include <netinet/in.h>
#include <netinet/sctp.h>
-#include <sys/time.h>
#include <unistd.h>
#include "config.h"
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index f1bad84..e77e4c5 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -28,7 +28,6 @@
#if HAVE_POLL_H
#include <poll.h>
#endif
-#include <sys/time.h>
typedef struct TCPContext {
int fd;
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 0eaed1b..39db263 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -35,7 +35,6 @@
#include "network.h"
#include "os_support.h"
#include "url.h"
-#include <sys/time.h>
#ifndef IPV6_ADD_MEMBERSHIP
#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index ed147ee..34f45eb 100644
--- a/libavutil/parseutils.c
+++ b/libavutil/parseutils.c
@@ -21,7 +21,6 @@
* misc parsing utilities
*/
-#include <sys/time.h>
#include <time.h>
#include "avstring.h"
--
1.7.10.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel