--- pdns/pdns_recursor.cc.orig Tue Nov 16 21:21:59 2004 +++ pdns/pdns_recursor.cc Tue Nov 16 21:22:31 2004 @@ -22,6 +22,8 @@ #include #include #include +#include +#include #ifndef WIN32 #include #endif // WIN32 @@ -42,21 +44,6 @@ MemRecursorCache RC; string s_programname="pdns_recursor"; - -#ifndef WIN32 -extern "C" { - int sem_init(sem_t*, int, unsigned int){return 0;} - int sem_wait(sem_t*){return 0;} - int sem_trywait(sem_t*){return 0;} - int sem_post(sem_t*){return 0;} - int sem_getvalue(sem_t*, int*){return 0;} - pthread_t pthread_self(void){return (pthread_t) 0;} - int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr){ return 0; } - int pthread_mutex_lock(pthread_mutex_t *mutex){ return 0; } - int pthread_mutex_unlock(pthread_mutex_t *mutex) { return 0; } - -} -#endif // WIN32 StatBag S; ArgvMap &arg()