Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Feb 2000 13:09:26 +0100
From:      Alexander Langer <alex@big.endian.de>
To:        ports@freebsd.org
Subject:   fix net/xicq (bentofied)
Message-ID:  <20000203130926.C29116@cichlids.cichlids.com>

next in thread | raw e-mail | index | archive | help
>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 <osreldate.h>
 
 #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




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