From c7e16e94e41164b9d409142a536dd80d00572dab Mon Sep 17 00:00:00 2001 From: michal Date: Tue, 17 Sep 2002 13:52:45 +0000 Subject: move struct timeval to missing.h git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'missing.h') diff --git a/missing.h b/missing.h index f9c9c6d0d4..44e5f86cb9 100644 --- a/missing.h +++ b/missing.h @@ -1,6 +1,7 @@ /************************************************ - missing.h - prototype for *.c in ./missing + missing.h - prototype for *.c in ./missing, and + for missing timeval struct $Author$ $Date$ @@ -11,6 +12,16 @@ #ifndef MISSING_H #define MISSING_H +#if defined(HAVE_SYS_TIME_H) +# include +#elif !defined(NT) +# define time_t long +struct timeval { + time_t tv_sec; /* seconds */ + time_t tv_usec; /* microseconds */ +}; +#endif + #ifndef HAVE_ACOSH extern double acosh _((double)); extern double asinh _((double)); -- cgit v1.2.3