summaryrefslogtreecommitdiff
path: root/dns/powerdns-devel/files/patch-pdns_pdns_recursor_cc
blob: 74b7ca3d6f45980f3c0e9dff0eb36476de84e4d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- 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 <errno.h>
 #include <map>
 #include <set>
+#include <semaphore.h>
+#include <pthread.h>
 #ifndef WIN32
 #include <netdb.h>
 #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()