From 80f3bc4812145c13c024262ef1f4b84fed9408f9 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 24 Aug 2018 16:38:42 +0200 Subject: [PATCH] _GNU_SOURCE needed for EAI_INPROGRESS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Define of _GNU_SOURCE is needed to be able to use EAI_INPROGRESS in loop.c. This patch fixes a build error loop.c:334:17: error: ‘EAI_INPROGRESS’ undeclared (first use in this function) if(rc == EAI_INPROGRESS){ occuring with a glibc-2.27-based buildroot toolchain for sparc64 Target: sparc64-buildroot-linux-gnu [...] gcc version 6.4.0 (Buildroot 2018.05) Source: http://autobuild.buildroot.org/toolchains/tarballs/br-sparc64-full-2018.05.tar.bz2 Signed-off-by: Bernd Kuhls --- config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/config.h b/config.h index 5e76e899..97ac6be9 100644 --- a/config.h +++ b/config.h @@ -15,6 +15,7 @@ # define _POSIX_C_SOURCE 200809L #endif +#define _GNU_SOURCE /* ============================================================ * Compatibility defines