From: Dr. Stephen Henson Date: Sat, 11 Feb 2012 23:38:49 +0000 (+0000) Subject: PR: 2717 X-Git-Tag: OpenSSL_1_0_1-beta3~12 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=c714e43c8df97bbd1855e47ffc72ed99c5d2bd9c 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 02cf44d488..4e11915b02 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 1bc25f48d5..5832a73cf5 100644 --- a/crypto/ui/ui_openssl.c +++ b/crypto/ui/ui_openssl.c @@ -122,7 +122,7 @@ * sigaction and fileno included. -pedantic would be more appropriate for * the intended purposes, but we can't prevent users from adding -ansi. */ -#ifndef _POSIX_C_SOURCE +#if !defined(_POSIX_C_SOURCE) && defined(OPENSSL_SYS_VMS) #define _POSIX_C_SOURCE 2 #endif #include