summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2009-06-20 20:47:30 +0000
committerChristos Zoulas <christos@zoulas.com>2009-06-20 20:47:30 +0000
commit2af5130c95a8e95915d85e3e4e92a340bb02e7a2 (patch)
tree17743b1ce1ecfd5d47bed07d49e24e63f501fa81 /src
parent1d3f624bca8db645dc952cfd064b102157b32a0f (diff)
downloadfile-git-2af5130c95a8e95915d85e3e4e92a340bb02e7a2.tar.gz
fix djgpp compilation
Diffstat (limited to 'src')
-rw-r--r--src/cdf_time.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cdf_time.c b/src/cdf_time.c
index 43c8d579..14dcfc6f 100644
--- a/src/cdf_time.c
+++ b/src/cdf_time.c
@@ -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.
*/