]> git.gag.com Git - fw/sdcc/blobdiff - src/SDCCglobl.h
* src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
[fw/sdcc] / src / SDCCglobl.h
index 850c06331d1c5cb92ca51f1a6c124c23eb24bd0e..b60bc26d2c086a37cfe411fcf1bb7f670a2257ff 100644 (file)
@@ -38,8 +38,9 @@
 #define ZERO  0
 
 #include <limits.h>             /* PATH_MAX                  */
-#ifndef PATH_MAX                /* POSIX, but not required   */
-#  define PATH_MAX 255          /* define a reasonable value */
+#if !defined(PATH_MAX) || (PATH_MAX < 2048)
+#  undef  PATH_MAX
+#  define PATH_MAX 2048         /* define a reasonable value */
 #endif
 
 #define  MAX_REG_PARMS  1