diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-07-15 14:34:59 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-07-15 14:34:59 -0400 |
commit | a9e31ae7a8b904f746e912da1d9ce8d0633f4117 (patch) | |
tree | 23a225f20cea6e4b6138fd14cdb6157cbc853131 | |
parent | afc7ce41d46fa19e65c5b4cdc7603c1d9c0e49d9 (diff) |
Minor fix in dns.c (avoid including pthread.h when not necessary)
-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 |