diff options
author | drgler <daniel.kruegler@gmail.com> | 2020-10-01 21:20:33 +0200 |
---|---|---|
committer | Dr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com> | 2020-10-03 16:06:02 +0200 |
commit | db78f8b3859aa35a4988d4ba49d5e8de8c2b491d (patch) | |
tree | b7b030feac97fe6da5e532b8e28e4ef6ccc5186a /crypto | |
parent | 5c2c624e2e8c50368a081fdd5ff8cb33e1124187 (diff) |
Ensure that _GNU_SOURCE is defined for NI_MAXHOST and NI_MAXSERV
Since glibc 2.8, these defines like `NI_MAXHOST` are exposed only
if suitable feature test macros are defined, namely: _GNU_SOURCE,
_DEFAULT_SOURCE (since glibc 2.19), or _BSD_SOURCE or _SVID_SOURCE
(before glibc 2.19), see GETNAMEINFO(3).
CLA: trivial
Fixes #13049
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/13054)
(cherry picked from commit 99501e817cbc4f11cc045dbaa7a81854d4349335)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bio/b_addr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/bio/b_addr.c b/crypto/bio/b_addr.c index d11268b6dc..c3f669329b 100644 --- a/crypto/bio/b_addr.c +++ b/crypto/bio/b_addr.c @@ -7,6 +7,10 @@ * https://www.openssl.org/source/license.html */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + #include <assert.h> #include <string.h> |