aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2009-04-12 03:37:43 +0800
committerharti <harti@FreeBSD.org>2009-04-12 03:37:43 +0800
commita0141f53604b10b7fe5ecc2aef7dcdcc31ea6349 (patch)
tree45ba16d86cded9f676c32a17c2cd3e8b5a78171c /net
parent2752a37759fcdaba60e6fb91aaabb69aa454ffc9 (diff)
downloadfreebsd-ports-gnome-a0141f53604b10b7fe5ecc2aef7dcdcc31ea6349.tar.gz
freebsd-ports-gnome-a0141f53604b10b7fe5ecc2aef7dcdcc31ea6349.tar.zst
freebsd-ports-gnome-a0141f53604b10b7fe5ecc2aef7dcdcc31ea6349.zip
Add a patch to fix the breakage introduced by the removal of a (non-
standard-conform) zero-length array in struct ccatm_op for compilation by LLVM.
Diffstat (limited to 'net')
-rw-r--r--net/atmsupport/files/patch-ats_cc-kern.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/atmsupport/files/patch-ats_cc-kern.c b/net/atmsupport/files/patch-ats_cc-kern.c
new file mode 100644
index 000000000000..d46ba69af8e9
--- /dev/null
+++ b/net/atmsupport/files/patch-ats_cc-kern.c
@@ -0,0 +1,11 @@
+--- ats_cc/kern.c.orig 2009-04-11 15:20:31.000000000 +0200
++++ ats_cc/kern.c 2009-04-11 15:00:04.000000000 +0200
+@@ -427,7 +427,7 @@
+ err(1, NULL);
+
+ uarg->op = sig;
+- memcpy(uarg->data, msg->b_rptr, uni_msg_len(msg));
++ memcpy(uarg + 1, msg->b_rptr, uni_msg_len(msg));
+
+ if ((ret = NgSendData(dsock, user->hook, (const u_char *)uarg,
+ sizeof(*uarg) + uni_msg_len(msg))) == -1)