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 85f2653482da055c598e03b3229baa2f3ef5c916..22c7aa5e2124419b3eb0e56a55e75f5853190e3f 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>