[openssl-dev] [openssl.org #4331] openssl-1.1.0pre3 on IRIX: struct timeval is undefined
Rainer M. Canavan via RT
rt at openssl.org
Mon Feb 22 04:34:21 UTC 2016
Building openssl-1.1.0pre3 for irix-mips3-cc fails because
struct timeval is undefined:
cc-1070 cc: ERROR File = s_server.c, Line = 2092
The indicated type is incomplete.
struct timeval timeout;
With the patch below, openssl builds, and aside from a few possibly
spurious errors in make test, appears to work. However, I assume that
the added include statement may have to be protected by a suitable
#ifdef.
rainer
diff -ur ../clean/openssl-1.1.0-pre3/apps/ocsp.c ./apps/ocsp.c
--- ../clean/openssl-1.1.0-pre3/apps/ocsp.c 2016-02-15 19:08:07.000000000 +0100
+++ ./apps/ocsp.c 2016-02-21 20:04:23.832906441 +0100
@@ -68,6 +68,7 @@
# include <stdlib.h>
# include <string.h>
# include <time.h>
+# include <sys/time.h>
# include <ctype.h>
# include "apps.h" /* needs to be included before the openssl
* headers! */
diff -ur ../clean/openssl-1.1.0-pre3/apps/s_client.c ./apps/s_client.c
--- ../clean/openssl-1.1.0-pre3/apps/s_client.c 2016-02-15 19:08:07.000000000 +0100
+++ ./apps/s_client.c 2016-02-21 20:04:21.896880487 +0100
@@ -167,6 +167,7 @@
#endif
#include "s_apps.h"
#include "timeouts.h"
+#include "sys/time.h"
#if (defined(OPENSSL_SYS_VMS) && __VMS_VER < 70000000)
/* FIONBIO used as a switch to enable ioctl, and that isn't in VMS < 7.0 */
diff -ur ../clean/openssl-1.1.0-pre3/apps/s_server.c ./apps/s_server.c
--- ../clean/openssl-1.1.0-pre3/apps/s_server.c 2016-02-15 19:08:07.000000000 +0100
+++ ./apps/s_server.c 2016-02-21 20:04:19.767906666 +0100
@@ -184,6 +184,7 @@
#endif
#include "s_apps.h"
#include "timeouts.h"
+#include "sys/time.h"
#if (defined(OPENSSL_SYS_VMS) && __VMS_VER < 70000000)
/* FIONBIO used as a switch to enable ioctl, and that isn't in VMS < 7.0 */
diff -ur ../clean/openssl-1.1.0-pre3/ssl/ssl_locl.h ./ssl/ssl_locl.h
--- ../clean/openssl-1.1.0-pre3/ssl/ssl_locl.h 2016-02-15 19:08:07.000000000 +0100
+++ ./ssl/ssl_locl.h 2016-02-21 20:04:25.679106539 +0100
@@ -143,6 +143,7 @@
# define HEADER_SSL_LOCL_H
# include <stdlib.h>
# include <time.h>
+#include <sys/time.h>
# include <string.h>
# include <errno.h>
--
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4331
Please log in as guest with password guest if prompted
More information about the openssl-dev
mailing list