summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/c.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/c.h b/include/c.h
index a240f4f6c..b769b5843 100644
--- a/include/c.h
+++ b/include/c.h
@@ -29,6 +29,10 @@
# define LOGIN_NAME_MAX 256
#endif
+#ifndef NAME_MAX
+# define NAME_MAX PATH_MAX
+#endif
+
/*
* Compiler-specific stuff
*/