From 59fdb3ac08db03c48e8846ac829d3e7601988b1a Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sat, 2 Oct 2010 15:36:15 +0000 Subject: [PATCH] DJGPP fix --- src/cdf.h | 4 ++++ src/cdf_time.c | 8 +------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/cdf.h b/src/cdf.h index 1b75fd68..a1b998be 100644 --- a/src/cdf.h +++ b/src/cdf.h @@ -40,6 +40,10 @@ #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; diff --git a/src/cdf_time.c b/src/cdf_time.c index 4abfe9e1..7d83ce84 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 @@ -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. */ -- 2.40.0