mirror of https://gitee.com/bigwinds/arangodb
ldap build on wintendo?
This commit is contained in:
parent
c2458f845a
commit
e48a019c76
|
@ -429,10 +429,20 @@ target_link_libraries(arangoserver
|
|||
boost_boost
|
||||
boost_system
|
||||
${SYSTEM_LIBRARIES}
|
||||
ldap
|
||||
lber
|
||||
)
|
||||
|
||||
if (MSVC)
|
||||
target_link_libraries(arangoserver
|
||||
Wldap32.lib
|
||||
)
|
||||
else ()
|
||||
target_link_libraries(arangoserver
|
||||
ldap
|
||||
lber
|
||||
)
|
||||
endif ()
|
||||
|
||||
|
||||
add_executable(${BIN_ARANGOD}
|
||||
RestServer/arangod.cpp
|
||||
)
|
||||
|
|
|
@ -43,9 +43,14 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if _WIN32
|
||||
#include <ntldap.h>
|
||||
#include <winldap.h>
|
||||
#else
|
||||
#include <lber.h>
|
||||
#include <ldap.h>
|
||||
|
||||
#endif
|
||||
|
||||
using namespace arangodb;
|
||||
using namespace arangodb::basics;
|
||||
|
|
Loading…
Reference in New Issue