mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-13 10:15:00 +00:00
Disable POSIX FS by default
This commit is contained in:
@@ -56,4 +56,8 @@
|
||||
#define MG_PATH_MAX FILENAME_MAX
|
||||
#endif
|
||||
|
||||
#ifndef MG_ENABLE_POSIX_FS
|
||||
#define MG_ENABLE_POSIX_FS 1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -110,4 +110,8 @@ typedef int socklen_t;
|
||||
#define SIGPIPE 0
|
||||
#endif
|
||||
|
||||
#ifndef MG_ENABLE_POSIX_FS
|
||||
#define MG_ENABLE_POSIX_FS 1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -118,12 +118,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef MG_ENABLE_POSIX_FS
|
||||
#if defined(FOPEN_MAX)
|
||||
#define MG_ENABLE_POSIX_FS 1
|
||||
#else
|
||||
#define MG_ENABLE_POSIX_FS 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MG_INVALID_SOCKET
|
||||
#define MG_INVALID_SOCKET (-1)
|
||||
|
||||
Reference in New Issue
Block a user