summaryrefslogtreecommitdiff
path: root/net-p2p/xmule/files/patch-src::gsocket.c
blob: 06f7483b3a82f065f21e4803b8d241a051dc4a49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/gsocket.c.orig	Tue May 27 14:11:08 2003
+++ src/gsocket.c	Tue May 27 14:11:58 2003
@@ -127,6 +127,11 @@
 #  define GSocket_Debug(args)
 #endif /* __GSOCKET_DEBUG__ */
 
+/* Added by Un-Thesis 2003-05-15 */
+/* Allows socket reuse */
+/* Code contributed by McCabe and arkanes */
+int intYes = 1;
+
 /* Global initialisers */
 
 int GSocket_Init(void)
@@ -400,7 +405,6 @@
 /* Added by Un-Thesis 2003-05-15 */
 /* Allows socket reuse */
 /* Code contributed by McCabe and arkanes */
-int intYes = 1;
 if(setsockopt(sck->m_fd, SOL_SOCKET, SO_REUSEADDR, &intYes, sizeof(int))) {
 	return GSOCK_IOERR;
 }