diff options
author | nork <nork@FreeBSD.org> | 2004-11-20 09:21:17 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2004-11-20 09:21:17 +0800 |
commit | c32bdc79d9bb8307be2a8512e61ce0de80bc9264 (patch) | |
tree | de15c03843cd6c401826311cfe96f1b525480988 /dns/powerdns/files | |
parent | b00dda6e2ef8cc970d529722c4c518eba9942727 (diff) | |
download | freebsd-ports-gnome-c32bdc79d9bb8307be2a8512e61ce0de80bc9264.tar.gz freebsd-ports-gnome-c32bdc79d9bb8307be2a8512e61ce0de80bc9264.tar.zst freebsd-ports-gnome-c32bdc79d9bb8307be2a8512e61ce0de80bc9264.zip |
pdns_recursor related issues fixed.
I committed pre-improved version's PR. This is my mistake.
Pointed out by: Ralf van der Enden <tremere@cainites.net> (maintainer)
Pointy hat to: myself
PR: ports/73862
Submitted by: Ralf van der Enden <tremere@cainites.net> (maintainer)
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() |