mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
- Fix build on 4.x
Reported by: bento via kris
This commit is contained in:
parent
c397881610
commit
80f5b19c29
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109607
@ -1,5 +1,5 @@
|
||||
--- src/drivers/pc/unix-netplay.c.orig Sun May 16 22:28:06 2004
|
||||
+++ src/drivers/pc/unix-netplay.c Tue May 18 12:57:05 2004
|
||||
--- src/drivers/pc/unix-netplay.c.orig Mon May 17 07:28:06 2004
|
||||
+++ src/drivers/pc/unix-netplay.c Fri May 21 10:20:13 2004
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/ioctl.h>
|
||||
@ -9,12 +9,30 @@
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <arpa/inet.h>
|
||||
@@ -42,6 +42,8 @@
|
||||
#ifndef socklen_t
|
||||
@@ -43,6 +43,8 @@
|
||||
#define socklen_t int
|
||||
#endif
|
||||
+
|
||||
+#define SOL_TCP IPPROTO_TCP
|
||||
|
||||
+#define SOL_TCP IPPROTO_TCP
|
||||
+
|
||||
char *netplayhost=0;
|
||||
char *netplaynick=0;
|
||||
char *netgamekey = 0;
|
||||
@@ -76,7 +78,8 @@
|
||||
unsigned long hadr;
|
||||
int TSocket;
|
||||
int netdivisor;
|
||||
-
|
||||
+ int tcpopt = 1;
|
||||
+
|
||||
if(!netplayhost) return(0);
|
||||
|
||||
if( (TSocket=socket(AF_INET,SOCK_STREAM,0))==-1)
|
||||
@@ -85,7 +88,6 @@
|
||||
FCEUD_NetworkClose();
|
||||
return(0);
|
||||
}
|
||||
- int tcpopt = 1;
|
||||
if(setsockopt(TSocket, SOL_TCP, TCP_NODELAY, &tcpopt, sizeof(int)))
|
||||
puts("Nodelay fail");
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- src/drivers/pc/unix-netplay.c.orig Sun May 16 22:28:06 2004
|
||||
+++ src/drivers/pc/unix-netplay.c Tue May 18 12:57:05 2004
|
||||
--- src/drivers/pc/unix-netplay.c.orig Mon May 17 07:28:06 2004
|
||||
+++ src/drivers/pc/unix-netplay.c Fri May 21 10:20:13 2004
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/ioctl.h>
|
||||
@ -9,12 +9,30 @@
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <arpa/inet.h>
|
||||
@@ -42,6 +42,8 @@
|
||||
#ifndef socklen_t
|
||||
@@ -43,6 +43,8 @@
|
||||
#define socklen_t int
|
||||
#endif
|
||||
+
|
||||
+#define SOL_TCP IPPROTO_TCP
|
||||
|
||||
+#define SOL_TCP IPPROTO_TCP
|
||||
+
|
||||
char *netplayhost=0;
|
||||
char *netplaynick=0;
|
||||
char *netgamekey = 0;
|
||||
@@ -76,7 +78,8 @@
|
||||
unsigned long hadr;
|
||||
int TSocket;
|
||||
int netdivisor;
|
||||
-
|
||||
+ int tcpopt = 1;
|
||||
+
|
||||
if(!netplayhost) return(0);
|
||||
|
||||
if( (TSocket=socket(AF_INET,SOCK_STREAM,0))==-1)
|
||||
@@ -85,7 +88,6 @@
|
||||
FCEUD_NetworkClose();
|
||||
return(0);
|
||||
}
|
||||
- int tcpopt = 1;
|
||||
if(setsockopt(TSocket, SOL_TCP, TCP_NODELAY, &tcpopt, sizeof(int)))
|
||||
puts("Nodelay fail");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user