* copied and put under another distribution licence
* [including the GNU Public Licence.] */
-#if !defined(_BSD_SOURCE)
-#define _BSD_SOURCE /* needed for strdup, snprintf, vprintf etc */
+#if !defined(_POSIX_C_SOURCE)
+#define _POSIX_C_SOURCE 201410L /* needed for strdup, snprintf, vprintf etc */
#endif
#include <openssl/mem.h>
#if defined(OPENSSL_WINDOWS)
#include <Windows.h>
+#else
+#include <strings.h>
#endif