mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-28 12:30:58 +00:00
Conditionally include dirent.h and dlfcn.h
If you do not have a filesystem or do not support dav or dynamic loading, the corresponding header files need not be included (some environments might not have them).
This commit is contained in:
1 parent
7d236d7f33
commit
9786478a31
1 file changed
+5
@@ -1274,8 +1274,13 @@ typedef HANDLE process_id_t;
|
||||
|
||||
#else ////////////// UNIX specific defines and includes
|
||||
|
||||
#if !defined(MONGOOSE_NO_FILESYSTEM) &&\
|
||||
(!defined(MONGOOSE_NO_DAV) || !defined(MONGOOSE_NO_DIRECTORY_LISTING))
|
||||
#include <dirent.h>
|
||||
#endif
|
||||
#if !defined(MONGOOSE_NO_FILESYSTEM) && !defined(MONGOOSE_NO_DL)
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
#include <inttypes.h>
|
||||
#include <pwd.h>
|
||||
#define O_BINARY 0
|
||||
|
||||
Reference in new issue
Block a user