sdl: only include sys/time.h when we have it
authorAndoni Morales <ylatuya at gmail.com>
Mon, 29 Jun 2009 10:23:59 +0000 (12:23 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 29 Jun 2009 10:24:42 +0000 (12:24 +0200)
Fixes #586956

ext/sdl/sdlvideosink.c

index 85f2653..22c7aa5 100644 (file)
@@ -25,7 +25,9 @@
 
 #include <signal.h>
 #include <string.h>
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
+#endif
 #include <stdlib.h>
 
 #include <gst/interfaces/xoverlay.h>