commit: b6d3da7af6c0418c4180d9cf2c44b14754ba1892
parent 49c688001cc31952ffa01c7881a536128ac62f69
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 17 Mar 2025 18:40:22 +0100
cmd/getconf: warn when a limits.h variable is undefined
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/getconf_vars.m4 b/cmd/getconf_vars.m4
@@ -278,10 +278,10 @@ conf_var_limit("CHARCLASS_NAME_MAX", _SC_CHARCLASS_NAME_MAX, CHARCLASS_NAME_MAX)
define(`limits_var', `#ifdef $1
{"$1", $1},
+#else
+#warning limits.h variable $1 undefined
#endif')dnl
-define(`limits_var_alias', `#ifdef $2
- {"$1", $2},
-#endif')dnl
+define(`limits_var_alias', ` {"$1", $2},')dnl
// _MIN and _MAX from <limits.h>
static const struct limits limits_vars[] = {
limits_var(SS_REPL_MAX)