Include sys/time.h before sys/resource.h
authorMans Rullgard <mans@mansr.com>
Sat, 13 Oct 2012 23:27:26 +0000 (00:27 +0100)
committerMans Rullgard <mans@mansr.com>
Tue, 23 Oct 2012 11:00:21 +0000 (12:00 +0100)
Some systems require sys/time.h being explicitly included before
sys/resource.h.  The configure check already does this.

Signed-off-by: Mans Rullgard <mans@mansr.com>
avconv.c
cmdutils.c

index 759e1c0..6f67711 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -53,6 +53,7 @@
 # include "libavfilter/buffersink.h"
 
 #if HAVE_SYS_RESOURCE_H
+#include <sys/time.h>
 #include <sys/types.h>
 #include <sys/resource.h>
 #elif HAVE_GETPROCESSTIMES
index 34c52ca..6570968 100644 (file)
@@ -49,6 +49,7 @@
 #include "libavformat/network.h"
 #endif
 #if HAVE_SYS_RESOURCE_H
+#include <sys/time.h>
 #include <sys/resource.h>
 #endif