aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-09-04 02:44:18 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-10-28 11:34:36 +0900
commit66673c889d477a4e8aa42faeb5b54fbdbcd86ba7 (patch)
treed4a3b256ec7b42ea75fc833ec5c5f4353e012889 /ext/openssl
parent447c05f122441a98b78ad9bdf26747b270596e68 (diff)
downloadruby-openssl-66673c889d477a4e8aa42faeb5b54fbdbcd86ba7.tar.gz
asn1: don't include sys/time.h
And also remove alternative declaration of struct timeval. We don't actually use struct timeval nor struct timespec anymore since r4660.
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/ossl_asn1.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/ext/openssl/ossl_asn1.c b/ext/openssl/ossl_asn1.c
index 2b8a85f0..892b76e7 100644
--- a/ext/openssl/ossl_asn1.c
+++ b/ext/openssl/ossl_asn1.c
@@ -9,15 +9,6 @@
*/
#include "ossl.h"
-#if defined(HAVE_SYS_TIME_H)
-# include <sys/time.h>
-#elif !defined(NT) && !defined(_WIN32)
-struct timeval {
- long tv_sec; /* seconds */
- long tv_usec; /* and microseconds */
-};
-#endif
-
static VALUE join_der(VALUE enumerable);
static VALUE ossl_asn1_decode0(unsigned char **pp, long length, long *offset,
int depth, int yield, long *num_read);