diff -ru etherape-0.9.12-orig/src/decode_proto.c etherape-0.9.12/src/decode_proto.c --- etherape-0.9.12-orig/src/decode_proto.c 2011-07-26 04:04:42.000000000 +0200 +++ etherape-0.9.12/src/decode_proto.c 2011-07-26 04:47:52.000000000 +0200 @@ -27,6 +27,8 @@ #include "appdata.h" #include #include +#include +#include #ifdef HAVE_ARPA_INET_H #include #endif diff -ru etherape-0.9.12-orig/src/thread_resolve.c etherape-0.9.12/src/thread_resolve.c --- etherape-0.9.12-orig/src/thread_resolve.c 2011-07-26 04:04:42.000000000 +0200 +++ etherape-0.9.12/src/thread_resolve.c 2011-07-26 05:09:35.000000000 +0200 @@ -35,11 +35,7 @@ #include #include #include -#if defined(__MACH__) && defined(__APPLE__) -#include -#else #include -#endif #include #include #include @@ -54,6 +50,8 @@ #include "ip-cache.h" #include "thread_resolve.h" +#define FORCE_SINGLE_THREAD + #define ETHERAPE_THREAD_POOL_SIZE 6 static pthread_t resolver_threads[ETHERAPE_THREAD_POOL_SIZE]; static int resolver_threads_num = 0; @@ -134,7 +132,7 @@ free(el); /* item saved, link elem now useless, freeing */ -#ifdef FORCE_SINGLE_THREAD +#ifdef FORCE_SINGLE_THREAD /* if forced single thread, uses gethostbyaddr */ result=0; resultptr = gethostbyaddr (&curitem->ip.addr8,