Ensure that _GNU_SOURCE is defined for bss_dgram.c
authorDaniel Krügler <daniel.kruegler@gmail.com>
Fri, 27 Aug 2021 16:32:20 +0000 (18:32 +0200)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sun, 29 Aug 2021 16:54:40 +0000 (18:54 +0200)
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 <bernd.edlinger@hotmail.de>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/16451)

crypto/bio/bss_dgram.c

index c79abe8746b12c7a3708c5940be5b8fd09b1c7a5..8e7daa1998638fea1a21e5fd457cea5a7af22a50 100644 (file)
@@ -7,6 +7,10 @@
  * https://www.openssl.org/source/license.html
  */
 
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+#endif
+
 #include <stdio.h>
 #include <errno.h>