]> granicus.if.org Git - file/commitdiff
fix djgpp compilation
authorChristos Zoulas <christos@zoulas.com>
Sat, 20 Jun 2009 20:47:30 +0000 (20:47 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 20 Jun 2009 20:47:30 +0000 (20:47 +0000)
src/cdf_time.c

index 43c8d5798615b029f64976e6ac5419e2eda76c1d..14dcfc6f74b32d1beea0a7bd64fe960495ee892c 100644 (file)
@@ -27,7 +27,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: cdf_time.c,v 1.7 2009/05/08 17:41:58 christos Exp $")
+FILE_RCSID("@(#)$File: cdf_time.c,v 1.8 2009/06/20 20:47:30 christos Exp $")
 #endif
 
 #include <time.h>
@@ -45,6 +45,12 @@ static const int mdays[] = {
     31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
 };
 
+#ifdef __DJGPP__
+#define timespec timeval
+#define tv_nsec tv_usec
+#endif
+
+
 /*
  * Return the number of days between jan 01 1601 and jan 01 of year.
  */