Date: Sat, 29 Jan 2000 17:18:55 +0100 (CET) From: Alexander Langer <alex@cichlids.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/16444: fix games/maelstrom (bentofied) Message-ID: <200001291618.RAA11687@cichlids.cichlids.com>
next in thread | raw e-mail | index | archive | help
>Number: 16444 >Category: ports >Synopsis: fix games/maelstrom (bentofied) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 29 08:20:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Alexander Langer >Release: FreeBSD 4.0-CURRENT i386 >Organization: This space is intentionally left blank. >Environment: bento >Description: see bento: build failed due to ansi c++ violations. >How-To-Repeat: see bento >Fix: add these patches --- patch-ad begins here --- --- netlogic/netplay.cpp.old Sat Jan 29 17:08:27 2000 +++ netlogic/netplay.cpp Sat Jan 29 17:09:12 2000 @@ -432,7 +432,7 @@ readit: clen = sizeof(from); len = recvfrom(gNetFD, (char *)buf, BUFSIZ, 0, - (struct sockaddr *)&from, &clen); + (struct sockaddr *)&from, (socklen_t *) &clen); if ( len <= 0 ) { if ( errno == EINTR ) { errno = 0; @@ -586,7 +586,7 @@ /* Suck up the packet */ clen = sizeof(from); (void) recvfrom(gNetFD, netbuf, BUFSIZ, 0, - (struct sockaddr *)&from, &clen); + (struct sockaddr *)&from, (socklen_t *) &clen); } } @@ -888,7 +888,7 @@ /* We are guaranteed that there is data here */ clen = sizeof(from); len = recvfrom(gNetFD, (char *)netbuf, BUFSIZ, 0, - (struct sockaddr *)&from, &clen); + (struct sockaddr *)&from, (socklen_t *) &clen); if ( len <= 0 ) { perror("Network error in Send_NewGame(): recvfrom()"); return(-1); @@ -992,7 +992,7 @@ /* We are guaranteed that there is data here */ clen = sizeof(from); len = recvfrom(gNetFD, (char *)netbuf, BUFSIZ, 0, - (struct sockaddr *)&from, &clen); + (struct sockaddr *)&from, (socklen_t *) &clen); if ( len < 0 ) { perror("Network error in Await_NewGame(): recvfrom()"); return(-1); --- patch-ad ends here --- --- patch-ae begins here --- --- fastrand.cpp.old Sat Jan 29 17:10:24 2000 +++ fastrand.cpp Sat Jan 29 17:11:02 2000 @@ -14,7 +14,7 @@ printf("SeedRandom(%lu)\n", Seed); #endif if ( ! Seed ) { - gettimeofday(&tv, (void *)0); + gettimeofday(&tv, (struct timezone *) NULL); randomSeed = ((tv.tv_usec<<16)|((tv.tv_sec^tv.tv_usec)&0xFFFF)); return; } --- patch-ae ends here --- --- patch-af begins here --- --- myerror.cpp.old Sat Jan 29 17:11:29 2000 +++ myerror.cpp Sat Jan 29 17:13:51 2000 @@ -59,6 +59,8 @@ #endif /* Win95 */ +extern "C" char * strerror(int errnum); + void myperror(char *msg) { char buffer[BUFSIZ]; --- patch-af ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001291618.RAA11687>