aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dns.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/dns.c b/src/dns.c
index b688260e..cc17b0cd 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -13,7 +13,16 @@
* Non blocking pthread-handled Dns scheme
*/
-#include <pthread.h>
+
+/*
+ * Uncomment the following line for debugging or gprof profiling.
+ */
+/* #undef D_DNS_THREADED */
+
+#ifdef D_DNS_THREADED
+# include <pthread.h>
+#endif
+
#include <netdb.h>
#include <sys/types.h>
@@ -30,11 +39,6 @@
#include "list.h"
#include "timeout.hh"
-/*
- * Uncomment the following line for debugging or gprof profiling.
- */
-/* #undef D_DNS_THREADED */
-
/* Maximum dns resolving threads */
#ifdef D_DNS_THREADED