]> granicus.if.org Git - pdns/commitdiff
probable fix for #26 on FreeBSD. Thanks to tremere at cainites dot net and friends
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 11 Jan 2005 19:50:27 +0000 (19:50 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 11 Jan 2005 19:50:27 +0000 (19:50 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@267 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdns_recursor.cc

index 8c090d4ad72e2e8a2edb70734d0070858c342011..f03b6cfd4196dea972525352232eddceaafeb99c 100644 (file)
 #include <fstream>
 #include "recursor_cache.hh"
 
+#ifdef FreeBSD           // see cvstrac ticket #26
+#include <pthread.h>
+#include <semaphore.h>
+#endif
+
 MemRecursorCache RC;
 
 string s_programname="pdns_recursor";
 
-#ifndef WIN32
+#if !WIN32 && !FreeBSD
 extern "C" {
   int sem_init(sem_t*, int, unsigned int){return 0;}
   int sem_wait(sem_t*){return 0;}