Browse Source

defining PATH_MAX if not defined

Sergey Lyubka 12 years ago
parent
commit
d2be594262
1 changed files with 4 additions and 0 deletions
  1. 4 0
      mongoose.c

+ 4 - 0
mongoose.c

@@ -266,6 +266,10 @@ typedef int socklen_t;
 #define SOMAXCONN 100
 #define SOMAXCONN 100
 #endif
 #endif
 
 
+#if !defined(PATH_MAX)
+#define PATH_MAX 4096
+#endif
+
 static const char *http_500_error = "Internal Server Error";
 static const char *http_500_error = "Internal Server Error";
 
 
 // Snatched from OpenSSL includes. I put the prototypes here to be independent
 // Snatched from OpenSSL includes. I put the prototypes here to be independent