Define the right macro for Linux and other GNU-based systems to get a correct declaration of strdup()
This commit is contained in:
parent
6231576088
commit
48bf4aae24
@ -58,9 +58,14 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <openssl/e_os2.h>
|
#include <openssl/e_os2.h>
|
||||||
|
/* The following defines enable the declaration of strdup(), which is an
|
||||||
|
extended function according to X/Open. */
|
||||||
#ifdef OPENSSL_SYS_VMS_DECC
|
#ifdef OPENSSL_SYS_VMS_DECC
|
||||||
# define _XOPEN_SOURCE_EXTENDED
|
# define _XOPEN_SOURCE_EXTENDED
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef OPENSSL_SYS_UNIX
|
||||||
|
# define __USE_XOPEN_EXTENDED /* For Linux and probably anything GNU */
|
||||||
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <openssl/engine.h>
|
#include <openssl/engine.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user