summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-05-29 02:34:02 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-05-29 02:34:02 +0000
commitb775f5336d6c500579627c09392a5262d7a28f2b (patch)
treefaa6bdfcd35a63c5ffca7eb97c60e11dadfe2d4a /net-analyzer/honeyd/files
parentVersion bumped (development version). (diff)
downloadgentoo-2-b775f5336d6c500579627c09392a5262d7a28f2b.tar.gz
gentoo-2-b775f5336d6c500579627c09392a5262d7a28f2b.tar.bz2
gentoo-2-b775f5336d6c500579627c09392a5262d7a28f2b.zip
Added patch so honeyd will build with gcc-4.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-analyzer/honeyd/files')
-rw-r--r--net-analyzer/honeyd/files/honeyd-1.0-gcc4.diff23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-analyzer/honeyd/files/honeyd-1.0-gcc4.diff b/net-analyzer/honeyd/files/honeyd-1.0-gcc4.diff
new file mode 100644
index 000000000000..5d38ee980070
--- /dev/null
+++ b/net-analyzer/honeyd/files/honeyd-1.0-gcc4.diff
@@ -0,0 +1,23 @@
+diff --exclude='*~' --exclude='.*' -I '$Id:' -urN honeyd-1.0.orig/dhcpclient.c honeyd-1.0/dhcpclient.c
+--- honeyd-1.0.orig/dhcpclient.c 2005-05-28 22:22:21.000000000 -0400
++++ honeyd-1.0/dhcpclient.c 2005-05-28 22:25:10.000000000 -0400
+@@ -472,7 +472,8 @@
+
+ memset(buf, 0, sizeof(buf));
+
+- eth = (struct eth_hdr *)p = buf;
++ p = buf;
++ eth = (struct eth_hdr *)p;
+ eth_pack_hdr(eth, ETH_ADDR_BROADCAST, req->ea, ETH_TYPE_IP);
+
+ restlen -= ETH_HDR_LEN;
+@@ -524,7 +525,8 @@
+
+ memset(buf, 0, sizeof(buf));
+
+- eth = (struct eth_hdr *)p = buf;
++ p = buf;
++ eth = (struct eth_hdr *)p;
+ eth_pack_hdr(eth, req->server_ea, req->ea, ETH_TYPE_IP);
+
+ restlen -= ETH_HDR_LEN;