mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-29 12:41:03 +00:00
MONGOOSE_NO_CGI needs special handling.
MONGOOSE_NO_CGI is implied by both NS_DISABLE_SOCKETPAIR and MONGOOSE_NO_FILESYSTEM. Thus, so as not to get complaints about the same define being defined twice, some extra checks are needed.
This commit is contained in:
1 parent
e7ac6024de
commit
04a15a0c10
1 file changed
+3
-1
+3
-1
@@ -1317,13 +1317,15 @@ typedef pid_t process_id_t;
|
||||
#define MONGOOSE_IDLE_TIMEOUT_SECONDS 300
|
||||
#endif
|
||||
|
||||
#ifdef NS_DISABLE_SOCKETPAIR
|
||||
#if defined(NS_DISABLE_SOCKETPAIR) && !defined(MONGOOSE_NO_CGI)
|
||||
#define MONGOOSE_NO_CGI
|
||||
#endif
|
||||
|
||||
#ifdef MONGOOSE_NO_FILESYSTEM
|
||||
#define MONGOOSE_NO_AUTH
|
||||
#if !defined(MONGOOSE_NO_CGI)
|
||||
#define MONGOOSE_NO_CGI
|
||||
#endif
|
||||
#define MONGOOSE_NO_DAV
|
||||
#define MONGOOSE_NO_DIRECTORY_LISTING
|
||||
#define MONGOOSE_NO_LOGGING
|
||||
|
||||
Reference in new issue
Block a user