diff options
author | steve <steve@FreeBSD.org> | 2000-02-28 07:21:48 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2000-02-28 07:21:48 +0800 |
commit | ccf6270759c1ba0b4759f185a0625cb2d3e99dd0 (patch) | |
tree | 5c04d5cfc882ebe8c626d7f1aca772706adde7a3 /net | |
parent | 2f20de15966564ddd41585be6f9965ac229944e2 (diff) | |
download | freebsd-ports-gnome-ccf6270759c1ba0b4759f185a0625cb2d3e99dd0.tar.gz freebsd-ports-gnome-ccf6270759c1ba0b4759f185a0625cb2d3e99dd0.tar.zst freebsd-ports-gnome-ccf6270759c1ba0b4759f185a0625cb2d3e99dd0.zip |
Fix build errors on -current.
Diffstat (limited to 'net')
-rw-r--r-- | net/xicq/files/patch-ag | 17 | ||||
-rw-r--r-- | net/xicq/files/patch-ah | 26 |
2 files changed, 43 insertions, 0 deletions
diff --git a/net/xicq/files/patch-ag b/net/xicq/files/patch-ag new file mode 100644 index 000000000000..662d773579a1 --- /dev/null +++ b/net/xicq/files/patch-ag @@ -0,0 +1,17 @@ +--- src/libXicq/structs.h.orig Sun Feb 27 12:34:45 2000 ++++ src/libXicq/structs.h Sun Feb 27 12:37:10 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"; + }; + + diff --git a/net/xicq/files/patch-ah b/net/xicq/files/patch-ah new file mode 100644 index 000000000000..3ac804237512 --- /dev/null +++ b/net/xicq/files/patch-ah @@ -0,0 +1,26 @@ +--- src/libXicq/net.cc.orig Sun Feb 27 12:37:37 2000 ++++ src/libXicq/net.cc Sun Feb 27 12:38:59 2000 +@@ -6,6 +6,9 @@ + **************************************************************************/ + + ++#ifdef __FreeBSD__ ++#include <sys/param.h> ++#endif + #include "net.h" + + #define MAXWATCH 10 +@@ -144,8 +147,13 @@ + int net_udpRecv(unsigned char *mesg, int length) + { + structlength = sizeof(client); ++#if defined(__FreeBSD__) && (__FreeBSD_version >= 400013) ++ recvd = recvfrom(net_information.sock, mesg, length, 0, ++ (struct sockaddr *) &client, (socklen_t *) &structlength); ++#else + recvd = recvfrom(net_information.sock, mesg, length, 0, + (struct sockaddr *) &client, &structlength); ++#endif + if (recvd < 0) + { + perror("libXicq: recvfrom"); |