summaryrefslogtreecommitdiffstats
path: root/gst/camerabin/camerabingeneral.h
diff options
context:
space:
mode:
authorAndoni Morales <ylatuya@gmail.com>2009-02-22 18:41:08 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-22 18:41:08 +0100
commit7992233522f6fe60c54cbdaa7f7e8ea9ce9fb398 (patch)
tree6cc4bb40c0f99b6b0aa46433222054e0c5d2e4b2 /gst/camerabin/camerabingeneral.h
parent5bdb5c4de142e2fe2ec920faea07a6f8d270a8bc (diff)
downloadgst-plugins-bad-7992233522f6fe60c54cbdaa7f7e8ea9ce9fb398.tar.gz
gst-plugins-bad-7992233522f6fe60c54cbdaa7f7e8ea9ce9fb398.tar.bz2
gst-plugins-bad-7992233522f6fe60c54cbdaa7f7e8ea9ce9fb398.zip
camerabin: Fix compilation on Windows with Visual Studio
Windows doesn't have strcasecmp so we should use g_ascii_strcasecmp here instead. Also Windows doesn't have sys/time.h so we first need to check if it actually exists and if not we should not include it. Fixes bug #572315.
Diffstat (limited to 'gst/camerabin/camerabingeneral.h')
-rw-r--r--gst/camerabin/camerabingeneral.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/camerabin/camerabingeneral.h b/gst/camerabin/camerabingeneral.h
index e05bb1f2..a84ab64b 100644
--- a/gst/camerabin/camerabingeneral.h
+++ b/gst/camerabin/camerabingeneral.h
@@ -21,7 +21,9 @@
#ifndef __CAMERABIN_GENERAL_H_
#define __CAMERABIN_GENERAL_H_
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
#include <time.h>
#include <gst/gst.h>