Add odr_setprint_noclose
[yaz-moved-to-github.git] / src / gettimeofday.c
index c14c36e..be9a4a0 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) Index Data
  * See the file LICENSE for details.
  */
 
@@ -20,7 +20,9 @@
 #include <windows.h>
 #include <sys/timeb.h>
 #endif
-#include <time.h>
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
 #include <yaz/gettimeofday.h>
 
 int yaz_gettimeofday(struct timeval *tval)