changeset 1326:03f0a57c9e87

Make sure socklen_t gets defined when building with Visual Studio.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 09 Nov 2011 10:34:58 +0000
parents 552da4dea7d1
children e4ef8d86dfc4
files compat.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/compat.h	Wed Nov 09 09:35:01 2011 +0000
+++ b/compat.h	Wed Nov 09 10:34:58 2011 +0000
@@ -320,6 +320,11 @@
 }
 #endif
 
+/* Visual Studio doesn't define this... so just in case */
+#ifndef socklen_t
+typedef int socklen_t;
+#endif
+
 #define socksprint(a, b) sockwrite(a, b, strlen(b), 0)
 
 char * API vargs(char *buf, int len, char *format, ...);