aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGOTOU Yuuzou <gotoyuzo@notwork.org>2002-07-24 12:31:31 +0000
committerGOTOU Yuuzou <gotoyuzo@notwork.org>2002-07-24 12:31:31 +0000
commitc6714059aef0cceef5b2209ea987776848375b75 (patch)
tree52eea6cf382b493877a376e2ed67ab51083f27c6
parent93989f300790263429768583bfa9e5390d3d7d92 (diff)
downloadruby-openssl-history-c6714059aef0cceef5b2209ea987776848375b75.tar.gz
* ossl.c: should include <sys/time.h> if it exists. (Thanks Knu)
-rw-r--r--ChangeLog3
-rw-r--r--ossl.c11
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 212b605..76364b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/ossl.c b/ossl.c
index 044b980..596183f 100644
--- a/ossl.c
+++ b/ossl.c
@@ -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
*/