diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/threadengines/threadengine_win32.cpp | 2 | ||||
-rw-r--r-- | src/tools/CMakeLists.txt | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp index 8fb103267..b270a895d 100644 --- a/src/threadengines/threadengine_win32.cpp +++ b/src/threadengines/threadengine_win32.cpp @@ -41,7 +41,7 @@ void ThreadEngine::Start(Thread *thread) if (!thread->Handle) { delete thread; - throw CoreException(Anope::string("Unable to create thread: ") + LastError()); + throw CoreException(Anope::string("Unable to create thread: ") + Anope::LastError()); } } diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index e96b3523e..00f3151dd 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -15,8 +15,9 @@ foreach(SRC ${TOOLS_SRCS}) calculate_depends(${SRC} SKIP) # Only continue if this file isn't skipped if(NOT SKIP) - # For anoptsmtp, we also want hashcomp.cpp included, so we force it into the sources + # For anoptsmtp, we also want base.cpp and hashcomp.cpp included, so we force it into the sources if(SRC STREQUAL anopesmtp.cpp) + set(SRC ${SRC} ${Anope_SOURCE_DIR}/src/base.cpp) set(SRC ${SRC} ${Anope_SOURCE_DIR}/src/hashcomp.cpp) endif(SRC STREQUAL anopesmtp.cpp) # Generate the executable and set its linker flags, also set it to depend on the main Anope executable to be built beforehand |