diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dns.c | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -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 |