Commit f2b13761 authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #431 from jhnwkmn/reduce-includes

Conditionally include dirent.h and dlfcn.h
parents 7d236d7f 9786478a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment