1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/games/csmash/files/patch-Network.cpp
Kirill Ponomarev fc4c5d4691 - Update to version 0.6.6
PR:		59644
Submitted by:	Ports Fury
2003-12-04 18:46:01 +00:00

28 lines
535 B
C++

--- Network.cpp.orig Sun Aug 17 20:43:03 2003
+++ Network.cpp Mon Nov 24 10:35:27 2003
@@ -36,13 +36,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
@@ -169,7 +171,6 @@
char *b = buf;
long millitm;
- b = ReadLong( b, tb->time );
b = ReadLong( b, millitm );
tb->millitm = (unsigned short)millitm;