aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-01 21:53:30 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-01 21:53:30 +0000
commit4d4023555b8c4e5812d2ac67242fe7754acc6def (patch)
tree17036a33b500972a312f1a5b2c75bee313f4b4d1 /include
parenta68250b79bf5358b7cf67bbd9185409a17993abc (diff)
issue #4678
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6936 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/compat.h8
-rwxr-xr-xinclude/asterisk/lock.h4
2 files changed, 10 insertions, 2 deletions
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 <windows.h>
-#include <w32api/ws2tcpip.h>
+#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