Define NAME_MAX to be the same as MAXNAMLEN
authorNeal Andrew Crook <neal@pippaluk.org.uk>
Tue, 24 May 2016 21:57:03 +0000 (22:57 +0100)
committerNeal Andrew Crook <neal@pippaluk.org.uk>
Tue, 24 May 2016 21:57:03 +0000 (22:57 +0100)
Allegedly: MAXNAMLEN is the BSD name for what POSIX calls NAME_MAX

Library/include/dirent.h

index a6c4f1b..695088e 100644 (file)
@@ -4,8 +4,9 @@
 #include <types.h>
 #endif
 
-
+/* `MAXNAMLEN' is the BSD name for what POSIX calls `NAME_MAX'.  */
 #define MAXNAMLEN      30
+#define NAME_MAX        30
 
 struct dirent {
        long            d_ino;          /* Try to be iBCS2 like */