File: def.diff

package info (click to toggle)
mg 20240709-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 800 kB
  • sloc: ansic: 15,628; sh: 78; makefile: 31
file content (17 lines) | stat: -rw-r--r-- 465 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/def.h b/def.h
index 3506ed0..f9fbf8f 100644
--- a/def.h
+++ b/def.h
@@ -794,3 +794,12 @@ extern int		 rptcount;	/* successive invocation count */
 #define st_ctim st_ctimespec
 #define st_mtim st_mtimespec
 #endif
+
+/* Some systems (GNU/Hurd, kFreeBSD) do not define PATH_MAX and LOGIN_NAME_MAX */
+#ifndef PATH_MAX
+#define PATH_MAX 4096   /* safe fallback */
+#endif
+
+#ifndef LOGIN_NAME_MAX
+#define LOGIN_NAME_MAX 256 /* safe fallback */
+#endif