summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 4 insertions, 0 deletions
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 <stdio.h>
+#ifdef THREADED_DNS
#include <pthread.h>
#include <signal.h>
+#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()