From owner-freebsd-ports Thu Feb 3 4: 8:49 2000 Delivered-To: freebsd-ports@freebsd.org Received: from mail.surf1.de (mail.Surf1.de [194.25.165.21]) by builder.freebsd.org (Postfix) with ESMTP id A2487433F for ; Thu, 3 Feb 2000 04:08:40 -0800 (PST) Received: from cichlids.com (pC19F5460.dip0.t-ipconnect.de [193.159.84.96]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id NAA24138 for ; Thu, 3 Feb 2000 13:08:10 +0100 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id 8C38AAB98 for ; Thu, 3 Feb 2000 13:08:58 +0100 (CET) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id NAA29169 for ports@freebsd.org; Thu, 3 Feb 2000 13:09:26 +0100 (CET) (envelope-from alex) Date: Thu, 3 Feb 2000 13:09:26 +0100 From: Alexander Langer To: ports@freebsd.org Subject: fix net/xicq (bentofied) Message-ID: <20000203130926.C29116@cichlids.cichlids.com> Mail-Followup-To: ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Submitter-Id: current-users >Originator: Alexander Langer >Organization: This space is intentionally left blank. >Confidential: no >Synopsis: fix net/xicq (bentofied) >Severity: non-critical >Priority: low >Category: ports >Release: FreeBSD 4.0-CURRENT i386 >Class: change-request >Environment: --current >Description: C++ violations for the new gcc. fixed in two new patches. >How-To-Repeat: see bento. >Fix: --- patch-ag begins here --- --- src/libXicq/structs.h.old Thu Feb 3 10:53:45 2000 +++ src/libXicq/structs.h Thu Feb 3 10:54:19 2000 @@ -16,10 +16,10 @@ */ struct LIB_INFORMATION { - const char NAME[] = "libXicq"; - const char VERSION[] = "071298-snapshot"; - const char AUTHOR[] = "tnc"; - const char CONTACT[] = "xtrophy@it.dk"; + static const char NAME[] = "libXicq"; + static const char VERSION[] = "071298-snapshot"; + static const char AUTHOR[] = "tnc"; + static const char CONTACT[] = "xtrophy@it.dk"; }; --- patch-ag ends here --- --- patch-ah begins here --- --- src/libXicq/net.cc.old Thu Feb 3 10:54:33 2000 +++ src/libXicq/net.cc Thu Feb 3 10:56:06 2000 @@ -7,6 +7,7 @@ #include "net.h" +#include #define MAXWATCH 10 @@ -144,8 +145,13 @@ int net_udpRecv(unsigned char *mesg, int length) { structlength = sizeof(client); +#if (__FreeBSD_version < 400000) recvd = recvfrom(net_information.sock, mesg, length, 0, (struct sockaddr *) &client, &structlength); +#else + recvd = recvfrom(net_information.sock, mesg, length, 0, + (struct sockaddr *) &client, (socklen_t *) &structlength); +#endif if (recvd < 0) { perror("libXicq: recvfrom"); --- patch-ah ends here --- ----- End forwarded message ----- -- I doubt, therefore I might be. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message