Fixing cmake MHD_INCLUDE_DIR to correspond with README; adding missing headers to Options/FileLog to compile on MSVC 2017 Win64
This commit is contained in:
parent
1961dcf824
commit
de7c57fd2f
3 changed files with 4 additions and 2 deletions
|
@ -221,7 +221,7 @@ if (WITH_HTTPD)
|
||||||
find_package(MHD)
|
find_package(MHD)
|
||||||
|
|
||||||
if (MHD_FOUND)
|
if (MHD_FOUND)
|
||||||
include_directories(${MHD_INCLUDE_DIRS})
|
include_directories(${MHD_INCLUDE_DIR})
|
||||||
set(HTTPD_SOURCES src/api/Httpd.h src/api/Httpd.cpp)
|
set(HTTPD_SOURCES src/api/Httpd.h src/api/Httpd.cpp)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "microhttpd NOT found: use `-DWITH_HTTPD=OFF` to build without http deamon support")
|
message(FATAL_ERROR "microhttpd NOT found: use `-DWITH_HTTPD=OFF` to build without http deamon support")
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
#include "rapidjson/error/en.h"
|
#include "rapidjson/error/en.h"
|
||||||
#include "rapidjson/filereadstream.h"
|
#include "rapidjson/filereadstream.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
|
||||||
#ifndef ARRAY_SIZE
|
#ifndef ARRAY_SIZE
|
||||||
|
|
|
@ -30,7 +30,8 @@
|
||||||
|
|
||||||
|
|
||||||
#include "log/FileLog.h"
|
#include "log/FileLog.h"
|
||||||
|
#include <uv.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
FileLog::FileLog(const char *fileName)
|
FileLog::FileLog(const char *fileName)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue