From xcas@cox.net  Fri May 28 08:01:29 2004
Return-Path: <xcas@cox.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 30EB916A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 May 2004 08:01:29 -0700 (PDT)
Received: from fed1mtao05.cox.net (fed1mtao05.cox.net [68.6.19.126])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EE46243D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 May 2004 08:01:28 -0700 (PDT)
	(envelope-from xcas@cox.net)
Received: from localhost.bsd-unix.org ([68.2.134.143])
          by fed1rmmtao05.cox.net
          (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP
          id <20040523042746.RHFC6178.fed1rmmtao05.cox.net@localhost.bsd-unix.org>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Sun, 23 May 2004 00:27:46 -0400
Message-Id: <1085286572.0@localhost.bsd-unix.org>
Date: Sat, 22 May 2004 21:29:32 -0700
From: "Greg J." <xcas@cox.net>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: [MAINTAINER] emulators/fceu: Fix build on -STABLE
X-Send-Pr-Version: gtk-send-pr 0.3.3 
X-GNATS-Notify:

>Number:         67298
>Category:       ports
>Synopsis:       [MAINTAINER] emulators/fceu: Fix build on -STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 28 08:10:06 PDT 2004
>Closed-Date:    Fri May 28 09:09:08 PDT 2004
>Last-Modified:  Fri May 28 09:09:08 PDT 2004
>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@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:

From: "Greg J." <xcas@cox.net>
To: "Greg J." <xcas@cox.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/67298: [MAINTAINER] emulators/fceu: Fix build on -STABLE
Date: Fri, 28 May 2004 08:59:59 -0700

 Wow.. please dismiss this.. it was fixed. Talk about a long email delay.
 o_O
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Fri May 28 09:08:52 PDT 2004 
State-Changed-Why:  
Closed at submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=67298 
>Unformatted:
