diff options
author | GOTOU Yuuzou <gotoyuzo@notwork.org> | 2002-07-24 12:31:31 +0000 |
---|---|---|
committer | GOTOU Yuuzou <gotoyuzo@notwork.org> | 2002-07-24 12:31:31 +0000 |
commit | c6714059aef0cceef5b2209ea987776848375b75 (patch) | |
tree | 52eea6cf382b493877a376e2ed67ab51083f27c6 | |
parent | 93989f300790263429768583bfa9e5390d3d7d92 (diff) | |
download | ruby-openssl-history-c6714059aef0cceef5b2209ea987776848375b75.tar.gz |
* ossl.c: should include <sys/time.h> if it exists. (Thanks Knu)
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | ossl.c | 11 |
2 files changed, 14 insertions, 0 deletions
@@ -4,6 +4,9 @@ Copyright (C) 2001 Michal Rokos <m.rokos@sh.cvut.cz> All rights reserved. $Log$ +Revision 1.42 2002/07/24 12:31:31 gotoyuzo + * ossl.c: should include <sys/time.h> if it exists. (Thanks Knu) + Revision 1.41 2002/07/24 09:56:17 gotoyuzo * ossl-0.1.2 released @@ -26,6 +26,17 @@ # include <time.h> #endif +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#else +#ifndef NT +struct timeval { + long tv_sec; /* seconds */ + long tv_usec; /* and microseconds */ +}; +#endif /* NT */ +#endif + /* * Check Types */ |