freebsd-ports/games/csmash/files/patch-MultiPlay.cpp
Kirill Ponomarev fc4c5d4691 - Update to version 0.6.6
PR:		59644
Submitted by:	Ports Fury
2003-12-04 18:46:01 +00:00

19 lines
375 B
C++

--- MultiPlay.cpp.orig Thu Nov 20 02:05:02 2003
+++ MultiPlay.cpp Mon Nov 24 09:34:22 2003
@@ -37,13 +37,15 @@
#include <netinet/tcp.h>
#endif
-#if defined(WIN32) || defined(__FreeBSD__)
+#if defined(WIN32)
typedef int socklen_t; /* mimic Penguin's typedef */
#else /* ! WIN32 */
+#if !defined(__FreeBSD__)
#define closesocket(FD) close(FD)
+#endif
#endif