diff --git a/src/xpdev/sockwrap.h b/src/xpdev/sockwrap.h
index 7dd07a1c189da25292cf07d8d2e480461944512f..a2402baa909e60d86f66f0dafa5bb661cd3970ea 100644
--- a/src/xpdev/sockwrap.h
+++ b/src/xpdev/sockwrap.h
@@ -28,6 +28,7 @@
 /* OS-specific */
 /***************/
 #if defined(_WIN32)	/* Use WinSock */
+typedef char* socket_buffer_t;
 
 #ifndef _WINSOCKAPI_
 	#include <winsock2.h>	/* socket/bind/etc. */
@@ -50,7 +51,8 @@
 #endif
 
 #elif defined __unix__		/* Unix-variant */
-							
+typedef void* socket_buffer_t;
+
 #include <netdb.h>			/* gethostbyname */
 #include <sys/types.h>		/* For u_int32_t on FreeBSD */
 #include <netinet/in.h>		/* IPPROTO_IP */