diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2004-11-20 01:21:17 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2004-11-20 01:21:17 +0000 |
commit | cf4d5a724e41a7a2ea29cf02abd1e1b31cadeaf5 (patch) | |
tree | 0b838dc39c35dc1265664cd5aa497d2f58112013 /dns/powerdns/files | |
parent | b8ac45361659f4715e1a0f90e172b863a4c34e74 (diff) | |
download | ports-cf4d5a724e41a7a2ea29cf02abd1e1b31cadeaf5.tar.gz ports-cf4d5a724e41a7a2ea29cf02abd1e1b31cadeaf5.zip |
Notes
Diffstat (limited to 'dns/powerdns/files')
-rw-r--r-- | dns/powerdns/files/patch-pdns_pdns_recursor_cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dns/powerdns/files/patch-pdns_pdns_recursor_cc b/dns/powerdns/files/patch-pdns_pdns_recursor_cc new file mode 100644 index 000000000000..74b7ca3d6f45 --- /dev/null +++ b/dns/powerdns/files/patch-pdns_pdns_recursor_cc @@ -0,0 +1,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() |