File csmash-0.6.6-definitions.diff of Package csmash

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
openSUSE Build Service is sponsored by