mirror of https://github.com/getdnsapi/getdns.git
Merge remote-tracking branch 'upstream/develop' into release/1.1.0-alpha3
This commit is contained in:
commit
2b682bc3a9
|
@ -951,6 +951,10 @@ if [ test -n "$DOXYGEN" ]
|
|||
fi
|
||||
|
||||
|
||||
#---- check for pthreads library
|
||||
AC_SEARCH_LIBS([pthread_mutex_init],[pthread],[AC_DEFINE([HAVE_PTHREADS], [1], [Have pthreads library])], [AC_MSG_WARN([pthreads not available])])
|
||||
|
||||
|
||||
dnl -----
|
||||
dnl ----- Start of "Things needed for gldns" section
|
||||
dnl -----
|
||||
|
|
|
@ -34,6 +34,23 @@
|
|||
#include "config.h"
|
||||
#define LOCKRET(func) func
|
||||
|
||||
#ifdef HAVE_PTHREADS
|
||||
#include "pthread.h"
|
||||
|
||||
static pthread_mutex_t arc_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
void _ARC4_LOCK(void)
|
||||
{
|
||||
pthread_mutex_lock(&arc_lock);
|
||||
}
|
||||
|
||||
void _ARC4_UNLOCK(void)
|
||||
{
|
||||
pthread_mutex_unlock(&arc_lock);
|
||||
}
|
||||
|
||||
#else
|
||||
/* XXX - add windows-(or at least non pthread) specific lock routines here */
|
||||
void _ARC4_LOCK(void)
|
||||
{
|
||||
}
|
||||
|
@ -41,4 +58,4 @@ void _ARC4_LOCK(void)
|
|||
void _ARC4_UNLOCK(void)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -13,7 +13,7 @@ then
|
|||
fi
|
||||
if [ ! -f "${SRCROOT}/libtool" ]
|
||||
then
|
||||
(cd "${SRCROOT}"; libtoolize -fic)
|
||||
(cd "${SRCROOT}"; (glibtoolize -fic || libtoolize -fic))
|
||||
fi
|
||||
if [ ! -f "${SRCROOT}/configure" ]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue