summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-11 19:21:59 -0400
committerAdam <Adam@anope.org>2010-10-11 19:21:59 -0400
commitafb55a1842e57bc6a4b61e70c047ea57597c5a69 (patch)
tree622c68fbebcab22aa077acbbf7e435aaf42b83e9 /src
parentd7aa5f6a3a69c69b5ab3d2ddcdfd2f819e840703 (diff)
Fixed Windows again
Diffstat (limited to 'src')
-rw-r--r--src/threadengines/threadengine_win32.cpp2
-rw-r--r--src/tools/CMakeLists.txt3
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