Commits

Ondřej Surý committed c41c32a

Add #ifdef for MAXPATHLEN on GNU Hurd

Comments (0)

Files changed (1)

 # elif defined(MAX_PATH)
 #  define MAXPATHLEN MAX_PATH
 # else
-#  define MAXPATHLEN 4096    /* Should be safe for any weird systems that do not define it */
+#  if defined(__GNU__)
+#   define MAXPATHLEN 4096
+#  else
+#   define MAXPATHLEN 256    /* Should be safe for any weird systems that do not define it */
+#  endif
 # endif
 #endif