ports/67298: [MAINTAINER] emulators/fceu: Fix build on -STABLE
Greg J.
xcas at cox.net
Fri May 28 15:10:21 UTC 2004
>Number: 67298
>Category: ports
>Synopsis: [MAINTAINER] emulators/fceu: Fix build on -STABLE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Fri May 28 08:10:06 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Greg J.
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 5.2-CURRENT #0: Wed May 19 07:39:54 MST 2004
cas at localhost.bsd-unix.org:/usr/obj/usr/src/sys/CASX32
>Description:
drivers/pc/unix-netplay.c: In function `FCEUD_NetworkConnect':
drivers/pc/unix-netplay.c:90: syntax error before `int'
drivers/pc/unix-netplay.c:91: `tcpopt' undeclared (first use in this function)
drivers/pc/unix-netplay.c:91: (Each undeclared identifier is reported only once
drivers/pc/unix-netplay.c:91: for each function it appears in.)
drivers/pc/unix-netplay.c: At top level:
drivers/pc/unix-netplay.c:70: warning: `de32' defined but not used
gmake[1]: *** [drivers/pc/unix-netplay.o] Error 1
gmake[1]: Leaving directory `/tmp/a/ports/emulators/fceu/work/fceu/src'
gmake: *** [all-recursive] Error 1
*** Error code 2
>How-To-Repeat:
Try building emulators/fceu on -STABLE
>Fix:
--- fceu.diff begins here ---
--- fceu/files/patch-src-drivers-pc-unix-netplay.c.orig Wed May 19 01:18:03 2004
+++ fceu/files/patch-src-drivers-pc-unix-netplay.c Sat May 22 21:14:37 2004
@@ -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 Sat May 22 21:13:11 2004
@@ -24,7 +24,7 @@
#include <sys/socket.h>
#include <sys/ioctl.h>
@@ -9,12 +9,28 @@
#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,6 +78,7 @@
+ unsigned long hadr;
+ int TSocket;
+ int netdivisor;
++ int tcpopt = 1;
+
+ if(!netplayhost) return(0);
+
+@@ -85,7 +88,6 @@
+ FCEUD_NetworkClose();
+ return(0);
+ }
+- int tcpopt = 1;
+ if(setsockopt(TSocket, SOL_TCP, TCP_NODELAY, &tcpopt, sizeof(int)))
+ puts("Nodelay fail");
+
--- fceu.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list