diff options
| author | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-17 13:52:45 +0000 |
|---|---|---|
| committer | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-17 13:52:45 +0000 |
| commit | 932e6c807f8a8c64dcb38db0a0f4c67c73fb116b (patch) | |
| tree | ae0fe059957cddc1c37d72ae116378497a3a6a4e /missing.h | |
| parent | 643ef3ad50c717e3abf6f226289d8af8a53d068f (diff) | |
| download | ruby-932e6c807f8a8c64dcb38db0a0f4c67c73fb116b.tar.gz ruby-932e6c807f8a8c64dcb38db0a0f4c67c73fb116b.tar.xz ruby-932e6c807f8a8c64dcb38db0a0f4c67c73fb116b.zip | |
move struct timeval to missing.h
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing.h')
| -rw-r--r-- | missing.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 <sys/time.h> +#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)); |
