From: Dr. Stephen Henson Date: Sat, 11 Feb 2012 23:41:19 +0000 (+0000) Subject: PR: 2717 X-Git-Tag: master-post-reformat~1947 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fc7dae5229a2738a57222eb5ce6fff0da47cfa29;p=oweals%2Fopenssl.git PR: 2717 Submitted by: Tim Rice Make compilation work on OpenServer 5.0.7 --- diff --git a/apps/apps.c b/apps/apps.c index 9eff4efb50..25e501b594 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -109,7 +109,7 @@ * */ -#ifndef _POSIX_C_SOURCE +#if !defined(_POSIX_C_SOURCE) && defined(OPENSSL_SYS_VMS) #define _POSIX_C_SOURCE 2 /* On VMS, you need to define this to get the declaration of fileno(). The value 2 is to make sure no function defined diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c index fd9c4a8169..a38c7581e6 100644 --- a/crypto/ui/ui_openssl.c +++ b/crypto/ui/ui_openssl.c @@ -126,11 +126,11 @@ #include #endif -#if !defined(OPENSSL_SYSNAME_VXWORKS) +#if !defined(_POSIX_C_SOURCE) && defined(OPENSSL_SYS_VMS) #ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 2 #endif -#endif /* !OPENSSL_SYSNAME_VXWORKS */ +#endif #include #include #include