]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
include/bits/sigstksz.h: Avoid #elif IS_IN (libsupport)
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 12 Dec 2024 21:56:05 +0000 (05:56 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Dec 2024 11:30:16 +0000 (19:30 +0800)
GCC 4.9 issues an error when generating misc/check-installed-headers-c.out:

In file included from ../signal/signal.h:328:0,
                 from ../include/signal.h:2,
                 from ../misc/sys/param.h:28,
                 from ../include/sys/param.h:1,
                 from /tmp/cih_test_e156ZB.c:10:
../include/bits/sigstksz.h:5:7: error: "IS_IN" is not defined [-Werror=undef]
 #elif IS_IN (libsupport)
       ^

Use "#else" instead.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
include/bits/sigstksz.h

index 2ca891e9181d040ace7ce73c49769d03c7ffe31d..3b3525244c907df8f5aeae0f1268d0c34ffdda51 100644 (file)
@@ -2,6 +2,8 @@
    glibc build.  IS_IN can only be used when _ISOMAC isn't defined.  */
 #ifdef _ISOMAC
 # include_next <bits/sigstksz.h>
-#elif IS_IN (libsupport)
-# include_next <bits/sigstksz.h>
+#else
+# if IS_IN (libsupport)
+#  include_next <bits/sigstksz.h>
+# endif
 #endif