From 001e00ba23962648cf0f8bfa1e1c50685ba6a15d Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Dec 2005 09:41:39 +0000 Subject: Made threading optional git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2108 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index c78eb4793..19d6a37f4 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -22,8 +22,10 @@ using namespace std; #include "users.h" #include "inspircd.h" #include +#ifdef THREADED_DNS #include #include +#endif #include "inspstring.h" #include "helperfuncs.h" @@ -64,11 +66,13 @@ userrec::userrec() userrec::~userrec() { +#ifdef THREADED_DNS // for local clients, clean up their dns thread if (!strcmp(this->server,ServerName)) { pthread_kill(this->dnsthread,9); } +#endif } void userrec::CloseSocket() -- cgit v1.2.3