Solaris <string.h> does not declare 'strdup' if _XOPEN_SOURCE is
defined. (Preprocessor symbols such as _POSIX_C_SOURCE or _XOPEN_SOURCE are supposed to disable anything not allowed by the respective specification; I'm not sure why 'strdup' would be considered an outlaw though.)
This commit is contained in:
		@@ -63,7 +63,7 @@
 | 
				
			|||||||
# define _XOPEN_SOURCE_EXTENDED
 | 
					# define _XOPEN_SOURCE_EXTENDED
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
#ifdef OPENSSL_SYS_UNIX
 | 
					#ifdef OPENSSL_SYS_UNIX
 | 
				
			||||||
# define _XOPEN_SOURCE
 | 
					/* # define _XOPEN_SOURCE */
 | 
				
			||||||
# define _XOPEN_SOURCE_EXTENDED	/* For Linux and probably anything GNU */
 | 
					# define _XOPEN_SOURCE_EXTENDED	/* For Linux and probably anything GNU */
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user