mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
Merge pull request #431 from jhnwkmn/reduce-includes
Conditionally include dirent.h and dlfcn.h
This commit is contained in:
commit
f2b13761c0
1 file changed
+5
@@ -1274,8 +1274,13 @@ typedef HANDLE process_id_t;
|
|||||||
|
|
||||||
#else ////////////// UNIX specific defines and includes
|
#else ////////////// UNIX specific defines and includes
|
||||||
|
|
||||||
|
#if !defined(MONGOOSE_NO_FILESYSTEM) &&\
|
||||||
|
(!defined(MONGOOSE_NO_DAV) || !defined(MONGOOSE_NO_DIRECTORY_LISTING))
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
#endif
|
||||||
|
#if !defined(MONGOOSE_NO_FILESYSTEM) && !defined(MONGOOSE_NO_DL)
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
#endif
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
|
|||||||
Reference in new issue
Block a user