Explorar o código

defining PATH_MAX if not defined

Sergey Lyubka %!s(int64=12) %!d(string=hai) anos
pai
achega
d2be594262
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      mongoose.c

+ 4 - 0
mongoose.c

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