libnettle/nettle-3.3-fix-fat-arm.patch
Dominique Leuenberger 9b876a523a Accepting request 520649 from devel:libraries:c_c++
- Add patch to fix build of fat-arm:
  * nettle-3.3-fix-fat-arm.patch

- Build nettle with AES-NI support (bsc#1056980)

OBS-URL: https://build.opensuse.org/request/show/520649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libnettle?expand=0&rev=27
2017-09-07 20:10:51 +00:00

30 lines
689 B
Diff

From ed25c358bab4cb57554a619e61e34b04a085d434 Mon Sep 17 00:00:00 2001
From: Andreas Schneider <asn@samba.org>
Date: Mon, 4 Sep 2017 10:01:19 +0200
Subject: [PATCH] fat-arm: Add missing define for _GNU_SOURCE
If configure finds secure_getenv it wants to use it. However it fails to
find the prototype because it is a GNU extension.
Signed-off-by: Andreas Schneider <asn@samba.org>
---
fat-arm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fat-arm.c b/fat-arm.c
index 1156499d..d52b1439 100644
--- a/fat-arm.c
+++ b/fat-arm.c
@@ -29,6 +29,8 @@
not, see http://www.gnu.org/licenses/.
*/
+#define _GNU_SOURCE
+
#if HAVE_CONFIG_H
# include "config.h"
#endif
--
2.14.1