1
0
Fork 0

ldap build on wintendo?

This commit is contained in:
baslr 2017-03-13 22:44:12 +01:00
parent c2458f845a
commit e48a019c76
2 changed files with 18 additions and 3 deletions

View File

@ -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
)

View File

@ -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;