summaryrefslogtreecommitdiffstats
path: root/editors/xenon/files/patch-ad
blob: d8dd49d1e535234a5dd867d8503cb5c634a8d067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- XeApp.C.orig	Tue Nov 23 00:36:49 1999
+++ XeApp.C	Mon Jan  3 18:25:45 2000
@@ -33,6 +33,11 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
+#include <osreldate.h>
+#if __FreeBSD_version < 400010
+typedef int socklen_t;
+#endif
+
 #ifdef _SGI_SOURCE
 #include <alloca.h>
 #include <bstring.h>
@@ -169,7 +174,7 @@
 
     gLocalIPAddr = 0;
     
-    if (getsockname(ConnectionNumber(gDisplay), &saddr, &len) != -1)
+    if (getsockname(ConnectionNumber(gDisplay), &saddr, (socklen_t *)&len) != -1)
     	if (saddr.sa_family == AF_INET)
     		gLocalIPAddr = ntohl(((sockaddr_in*)&saddr)->sin_addr.s_addr);
     
OpenPOWER on IntegriCloud