From 7ffb604a2f1f992870861d772d2879f59cf7a58a Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Tue, 1 Nov 2005 21:53:30 +0000 Subject: issue #4678 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6936 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/compat.h | 8 ++++++-- include/asterisk/lock.h | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'include/asterisk') diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index fc4791b9c..fb6a5d59f 100755 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -63,8 +63,12 @@ int unsetenv(const char *name); #ifdef __CYGWIN__ #define _WIN32_WINNT 0x0500 -#include -#include +#ifndef INET_ADDRSTRLEN +#define INET_ADDRSTRLEN 16 +#endif +#ifndef INET6_ADDRSTRLEN +#define INET6_ADDRSTRLEN 46 +#endif #endif /* __CYGWIN__ */ #define HAVE_VASPRINTF diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 5c6236015..edc112698 100755 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -41,6 +41,10 @@ 0x20 } } #endif +#ifdef __CYGWIN__ +#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE +#endif + #ifdef BSD #ifdef __GNUC__ #define AST_MUTEX_INIT_W_CONSTRUCTORS -- cgit v1.2.3