ocsp.c (as of CVS state of May 15), revision 1.42 doesn't compile 
for Win32 target either with native MINGW32 or with Linux-hosted
cross-compiler. 

Problem is that include file <sys/select.h> included on line 71,
doesn't exist under Windows.

BTW, this file uses macro OPENSSL_SYS_VMS, but doesn't include
e_os2.h file, where this macro defined, and doesn't include ANY of 
openssl headers (which can include this file) before using of this
macro.

Following patch fixes these problems

Index: ocsp.c
===================================================================
--- ocsp.c      (revision 48)
+++ ocsp.c      (working copy)
@@ -56,7 +56,7 @@
  *
  */
 #ifndef OPENSSL_NO_OCSP
-
+#include "../e_os2.h"
 #include <stdio.h>
 #include <string.h>
 #define _XOPEN_SOURCE_EXTENDED 1 /* Or fd_set, select() and so on won't be
@@ -67,7 +67,9 @@
 # include <time.h>
 #else
 # include <sys/time.h>
-# include <sys/select.h>
+# ifndef OPENSSL_SYS_WINDOWS
+#  include <sys/select.h>
+# endif
 #endif
 #include "apps.h"
 #include <openssl/pem.h>


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to