csmash/csmash-0.6.6-definitions.diff
2010-11-10 20:00:53 +00:00

29 lines
644 B
Diff

Index: MultiPlay.cpp
===================================================================
--- MultiPlay.cpp.orig
+++ MultiPlay.cpp
@@ -43,7 +43,9 @@ typedef int socklen_t; /* mimic Penguin
#else /* ! WIN32 */
+#ifndef closesocket /* see included ttincl.h */
#define closesocket(FD) close(FD)
+#endif
#endif
Index: Network.cpp
===================================================================
--- Network.cpp.orig
+++ Network.cpp
@@ -42,7 +42,9 @@ typedef int socklen_t; /* mimic Penguin
#else /* ! WIN32 */
+#ifndef closesocket /* see included ttincl.h */
#define closesocket(FD) close(FD)
+#endif
#endif