]> 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 14dcfc6f74b32d1beea0a7bd64fe960495ee892c..9d0b1dfea484c065db06c3e748974797d8e6d3b6 100644 (file)
@@ -27,7 +27,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: cdf_time.c,v 1.8 2009/06/20 20:47:30 christos Exp $")
+FILE_RCSID("@(#)$File: cdf_time.c,v 1.9 2010/10/02 15:36:15 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.
  */