bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix getconf builtin ifdef's


From: Grisha Levit
Subject: [PATCH] fix getconf builtin ifdef's
Date: Tue, 1 Aug 2023 00:31:18 -0400

The changes to getconf.c in 829aad36 (submitted in
https://savannah.gnu.org/patch/?10367) seem to have a typo. Should likely
be:

diff --git a/examples/loadables/getconf.c b/examples/loadables/getconf.c
index af5544f0..f3f1ffcd 100644
--- a/examples/loadables/getconf.c
+++ b/examples/loadables/getconf.c
@@ -274,11 +274,13 @@ static const struct conf vars[] =
 #ifdef _SC_AVPHYS_PAGES
     { "_AVPHYS_PAGES", _SC_AVPHYS_PAGES, SYSCONF },
 #endif
-#ifdef _NPROCESSORS_CONF
+#ifdef _SC_NPROCESSORS_CONF
     { "_NPROCESSORS_CONF", _SC_NPROCESSORS_CONF, SYSCONF },
+#endif
+#ifdef _SC_NPROCESSORS_ONLN
     { "_NPROCESSORS_ONLN", _SC_NPROCESSORS_ONLN, SYSCONF },
 #endif
-#ifdef _PHYS_PAGES
+#ifdef _SC_PHYS_PAGES
     { "_PHYS_PAGES", _SC_PHYS_PAGES, SYSCONF },
 #endif
 #ifdef _SC_ARG_MAX


reply via email to

[Prev in Thread] Current Thread [Next in Thread]