Alon Bar-Lev hit a build problem and provided the following proposed
patch:
> diff -urNp openssl-1.0.0-beta4.org/ssl/ssltest.c 
> openssl-1.0.0-beta4/ssl/ssltest.c
> --- openssl-1.0.0-beta4.org/ssl/ssltest.c     2009-01-08 
> 01:44:27.000000000 +0200
> +++ openssl-1.0.0-beta4/ssl/ssltest.c 2009-11-21 
> 09:24:46.001175088 +0200
> @@ -143,6 +143,9 @@
>  #define _BSD_SOURCE 1                /* Or gethostname won't 
> be declared properly
>                                  on Linux and GNU platforms. */
>  
> +#define _XOPEN_SOURCE 500    /* Or isascii won't be declared 
> properly on
> +                                VMS (at least with DECompHP C).  */
> +
>  #include <assert.h>
>  #include <errno.h>
>  #include <limits.h>
> @@ -154,8 +157,6 @@
>  #define USE_SOCKETS
>  #include "e_os.h"
>  
> -#define _XOPEN_SOURCE 500    /* Or isascii won't be declared 
> properly on
> -                                VMS (at least with DECompHP C).  */
>  #include <ctype.h>
>  
>  #include <openssl/bio.h>

In general, it is better to surround the definition of the
Standards-conforming macros with a guard that tests whether the macro
has already been defined, e.g.

#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
#endif
 
because on some systems, it is highly likely that these macros are
already defined by the user's environment.

Thanks
PG
--
Paul Green, Senior Technical Consultant, Stratus Technologies.
Voice: +1 978-461-7557; FAX: +1 978-461-3610; Mobile: +1 (978) 235-2451;
AIM: PaulGreen
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to