]> granicus.if.org Git - file/commitdiff
DJGPP fix
authorChristos Zoulas <christos@zoulas.com>
Sat, 2 Oct 2010 15:36:15 +0000 (15:36 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 2 Oct 2010 15:36:15 +0000 (15:36 +0000)
src/cdf.h
src/cdf_time.c

index 1b75fd681bac46b03dfa3887d114dd056a6d833d..a1b998be38de04a91108e092b7a23ed3252a6c61 100644 (file)
--- a/src/cdf.h
+++ b/src/cdf.h
 #define timespec timeval
 #define tv_nsec tv_usec
 #endif
+#ifdef __DJGPP__
+#define timespec timeval
+#define tv_nsec tv_usec
+#endif
 
 typedef int32_t cdf_secid_t;
 
index 4abfe9e189a63c3c9a72e66503e8ec0bfc91925c..7d83ce84c1a1b8fd4f05d09777d5d1ca2964e66f 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,12 +45,6 @@ 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.
  */