TLS/SSL and crypto library
修訂 | e979e4715f3795cb59fcf46c77e7c714a184edd8 (tree) |
---|---|
時間 | 2015-12-03 02:50:01 |
作者 | Richard Levitte <levitte@open...> |
Commiter | Richard Levitte |
_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)
@@ -116,6 +116,7 @@ | ||
116 | 116 | |
117 | 117 | /* Or gethostname won't be declared properly on Linux and GNU platforms. */ |
118 | 118 | #define _BSD_SOURCE 1 |
119 | +#define _DEFAULT_SOURCE 1 | |
119 | 120 | |
120 | 121 | #include <assert.h> |
121 | 122 | #include <errno.h> |