Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Aug 2010 16:30:09 GMT
From:      Anonymous <swell.k@gmail.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/149406: [patch] games/connect4: fix amd64 segfault
Message-ID:  <201008071630.o77GU9mC056620@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/149406; it has been noted by GNATS.

From: Anonymous <swell.k@gmail.com>
To: bug-followup@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@WATER.bitnet
     *     Canadian domain:         tcjones@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 ---



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008071630.o77GU9mC056620>