Browse code

Include sys/time.h before sys/resource.h

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>

Mans Rullgard authored on 2012/10/14 08:27:26
Showing 2 changed files
... ...
@@ -53,6 +53,7 @@
53 53
 # include "libavfilter/buffersink.h"
54 54
 
55 55
 #if HAVE_SYS_RESOURCE_H
56
+#include <sys/time.h>
56 57
 #include <sys/types.h>
57 58
 #include <sys/resource.h>
58 59
 #elif HAVE_GETPROCESSTIMES
... ...
@@ -49,6 +49,7 @@
49 49
 #include "libavformat/network.h"
50 50
 #endif
51 51
 #if HAVE_SYS_RESOURCE_H
52
+#include <sys/time.h>
52 53
 #include <sys/resource.h>
53 54
 #endif
54 55