Apply a more modern way to get the definition of select(), except for VMS.
authorRichard Levitte <levitte@openssl.org>
Thu, 29 Mar 2007 18:34:57 +0000 (18:34 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 29 Mar 2007 18:34:57 +0000 (18:34 +0000)
Submitted by Corinna Vinschen <vinschen@redhat.com>

apps/ocsp.c

index c8676fc..6ae5fd1 100644 (file)
                                     declared properly on Compaq platforms
                                     (at least with DEC C).
                                  */
-#include <time.h>
+#ifdef OPENSSL_SYS_VMS
+# include <time.h>
+#else
+# include <sys/time.h>
+# include <sys/select.h>
+#endif
 #include "apps.h"
 #include <openssl/pem.h>
 #include <openssl/ocsp.h>