blob: ebc3dfa3df96fe95466c47ba15fc8c898f75f22d (
plain)
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
|
--- pdns/pdns_recursor.cc.orig Wed Jan 12 15:30:19 2005
+++ pdns/pdns_recursor.cc Wed Jan 12 15:31:01 2005
@@ -39,7 +39,7 @@
#include <fstream>
#include "recursor_cache.hh"
-#ifdef FreeBSD // see cvstrac ticket #26
+#ifdef __FreeBSD__ // see cvstrac ticket #26
#include <pthread.h>
#include <semaphore.h>
#endif
@@ -48,7 +48,8 @@
string s_programname="pdns_recursor";
-#if !WIN32 && !FreeBSD
+#ifndef WIN32
+#ifndef __FreeBSD__
extern "C" {
int sem_init(sem_t*, int, unsigned int){return 0;}
int sem_wait(sem_t*){return 0;}
@@ -61,6 +62,7 @@
int pthread_mutex_unlock(pthread_mutex_t *mutex) { return 0; }
}
+#endif // __FreeBSD__
#endif // WIN32
StatBag S;
|