ports/149406: [patch] games/connect4: fix amd64 segfault
Anonymous
swell.k at gmail.com
Sat Aug 7 16:30:09 UTC 2010
The following reply was made to PR ports/149406; it has been noted by GNATS.
From: Anonymous <swell.k at gmail.com>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/149406: [patch] games/connect4: fix amd64 segfault
Date: Sat, 07 Aug 2010 20:28:58 +0400
Silence two more C99 specific warnings issued by Clang about implicit
declaration of setuid/gethostname. There are two more[1] left but I'll
leave them for someone familiar with the code.
[1] unused arg in fprintf() call and implicit int for main()
--- b.diff begins here ---
diff --git games/connect4/files/patch-ab games/connect4/files/patch-ab
index da83cc9..da97b58 100644
--- games/connect4/files/patch-ab
+++ games/connect4/files/patch-ab
@@ -1,8 +1,8 @@
*** c4.c.orig Tue Apr 15 22:06:03 1997
--- c4.c Tue Apr 15 22:16:29 1997
***************
-*** 11,19 ****
---- 11,23 ----
+*** 11,20 ****
+--- 11,25 ----
* BITNET: tcjones at WATER.bitnet
* Canadian domain: tcjones at dragon.uwaterloo.ca
*
@@ -14,8 +14,10 @@
+ #include <string.h>
+ #include <stdlib.h>
#include <sys/types.h>
++ #include <unistd.h>
#include <ctype.h>
#include <pwd.h>
+ #include <sys/time.h>
***************
*** 219,225 ****
register char *cp;
--- b.diff ends here ---
More information about the freebsd-ports-bugs
mailing list