aboutsummaryrefslogtreecommitdiff
path: root/net/xmule/files/patch-src::gsocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/xmule/files/patch-src::gsocket.c')
-rw-r--r--net/xmule/files/patch-src::gsocket.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/xmule/files/patch-src::gsocket.c b/net/xmule/files/patch-src::gsocket.c
new file mode 100644
index 000000000000..06f7483b3a82
--- /dev/null
+++ b/net/xmule/files/patch-src::gsocket.c
@@ -0,0 +1,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;
+ }