1*4882a593SmuzhiyunFrom dadb157df58e79c7f560cacae80ea51953606fca Mon Sep 17 00:00:00 2001 2*4882a593SmuzhiyunFrom: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3*4882a593SmuzhiyunDate: Sun, 11 Apr 2021 11:02:20 +0200 4*4882a593SmuzhiyunSubject: [PATCH] configure: add -D_GNU_SOURCE 5*4882a593SmuzhiyunMIME-Version: 1.0 6*4882a593SmuzhiyunContent-Type: text/plain; charset=UTF-8 7*4882a593SmuzhiyunContent-Transfer-Encoding: 8bit 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunThis will fix the following build failure with uclibc-ng which is raised 10*4882a593Smuzhiyunsince version 1.0.6.1 and 11*4882a593Smuzhiyunhttps://github.com/skarnet/s6-linux-init/commit/355a75e08bbc8af8af97576bad07471dd1b431d8: 12*4882a593Smuzhiyun 13*4882a593Smuzhiyunsrc/shutdown/s6-linux-init-shutdownd.c: In function ‘main’: 14*4882a593Smuzhiyunsrc/shutdown/s6-linux-init-shutdownd.c:294:24: error: ‘F_DUPFD_CLOEXEC’ undeclared (first use in this function); did you mean ‘FD_CLOEXEC’? 15*4882a593Smuzhiyun 294 | fd[0] = fcntl(1, F_DUPFD_CLOEXEC, 0) ; 16*4882a593Smuzhiyun | ^~~~~~~~~~~~~~~ 17*4882a593Smuzhiyun | FD_CLOEXEC 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunSigned-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 20*4882a593Smuzhiyun[Upstream status: https://github.com/skarnet/s6-linux-init/pull/3] 21*4882a593Smuzhiyun--- 22*4882a593Smuzhiyun configure | 2 +- 23*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-) 24*4882a593Smuzhiyun 25*4882a593Smuzhiyundiff --git a/configure b/configure 26*4882a593Smuzhiyunindex 47db5b2..90fbb3b 100755 27*4882a593Smuzhiyun--- a/configure 28*4882a593Smuzhiyun+++ b/configure 29*4882a593Smuzhiyun@@ -138,7 +138,7 @@ getmacrostring () { 30*4882a593Smuzhiyun # Actual script 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun CC_AUTO= 33*4882a593Smuzhiyun-CPPFLAGS_AUTO="-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -iquote src/include-local -Isrc/include" 34*4882a593Smuzhiyun+CPPFLAGS_AUTO="-D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -iquote src/include-local -Isrc/include" 35*4882a593Smuzhiyun CPPFLAGS_POST="$CPPFLAGS" 36*4882a593Smuzhiyun CPPFLAGS= 37*4882a593Smuzhiyun CFLAGS_AUTO="-pipe -Wall" 38*4882a593Smuzhiyun-- 39*4882a593Smuzhiyun2.30.2 40*4882a593Smuzhiyun 41