diff options
author | Richard Levitte <levitte@openssl.org> | 2015-12-02 18:18:03 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-12-02 18:49:57 +0100 |
commit | fb35ea28f4f64263adf3e85327e6d73ab980fe25 (patch) | |
tree | db1bba4e311215c56267d04de6dbbc3f5b886e5e | |
parent | 41d049e1cda0e23ad45fbca94fc90cfe9cfee466 (diff) |
_BSD_SOURCE is deprecated, use _DEFAULT_SOURCE instead
The feature_test_macros(7) manual tells us that _BSD_SOURCE is
deprecated since glibc 2.20 and that the compiler will warn about it
being used, unless _DEFAULT_SOURCE is defined as well.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit f9fd35248c9a3b1125d9ab82ffb19d62e86533ac)
-rw-r--r-- | ssl/ssltest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 6a0c293aa5..349ee1e03e 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -142,6 +142,7 @@ /* Or gethostname won't be declared properly on Linux and GNU platforms. */ #define _BSD_SOURCE 1 +#define _DEFAULT_SOURCE 1 #include <assert.h> #include <errno.h> |