Use autoconf logic to determine the presence of PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP and PTHREAD_MUTEX_RECURSIVE_NP. Enclose error message from network.h in "

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2007-11-17 23:03:16 +00:00
parent 19460802ef
commit 42b08b4eb8
5 changed files with 259 additions and 7 deletions

View File

@@ -562,6 +562,19 @@
/* Define if you have POSIX threads libraries and header files. */
#undef HAVE_PTHREAD
/* Define if your system has the PTHREAD_MUTEX_RECURSIVE_NP headers. */
#undef HAVE_PTHREAD_MUTEX_RECURSIVE_NP
/* Define PTHREAD_MUTEX_RECURSIVE_NP headers version */
#undef HAVE_PTHREAD_MUTEX_RECURSIVE_NP_VERSION
/* Define if your system has the PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
headers. */
#undef HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
/* Define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP headers version */
#undef HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_VERSION
/* Define if your system has the PTHREAD_RWLOCK_INITIALIZER headers. */
#undef HAVE_PTHREAD_RWLOCK_INITIALIZER

View File

@@ -81,7 +81,7 @@
/* Asterisk REQUIRES recursive (not error checking) mutexes
and will not run without them. */
#if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) && defined(PTHREAD_MUTEX_RECURSIVE_NP)
#if defined(HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) && defined(HAVE_PTHREAD_MUTEX_RECURSIVE_NP)
#define PTHREAD_MUTEX_INIT_VALUE PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
#define AST_MUTEX_KIND PTHREAD_MUTEX_RECURSIVE_NP
#else

View File

@@ -52,7 +52,7 @@ typedef int socklen_t;
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#error don't know how to handle network functions here.
#error "don't know how to handle network functions here."
#endif
#ifndef HAVE_INET_ATON