csmash/csmash-0.6.6-definitions.diff

29 lines
644 B
Diff
Raw Normal View History

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