From: Daniel Krügler Date: Fri, 27 Aug 2021 16:32:20 +0000 (+0200) Subject: Ensure that _GNU_SOURCE is defined for bss_dgram.c X-Git-Tag: openssl-3.0.0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8e1f6d1a9e599d575431f559200018b8f822e0f;p=thirdparty%2Fopenssl.git Ensure that _GNU_SOURCE is defined for bss_dgram.c This fixes the following error with gcc10 under strict ANSI conditions: .../crypto/bio/bss_dgram.c:373:20: error: 'const struct in6_addr' has no member named 's6_addr32' CLA: trivial Fixes #16449 Reviewed-by: Bernd Edlinger Reviewed-by: Paul Dale Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/16451) --- diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index c79abe8746b..8e7daa19986 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -7,6 +7,10 @@ * https://www.openssl.org/source/license.html */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + #include #include