aboutsummaryrefslogtreecommitdiffstats
path: root/comms/conserver-com
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2002-02-27 09:20:42 +0800
committerkuriyama <kuriyama@FreeBSD.org>2002-02-27 09:20:42 +0800
commitd4d1fee9739ea90d3564da3fef0dfcb419746b1a (patch)
treec89d01afb4ccf0a6265f8ebdccb61d2df76bc91b /comms/conserver-com
parent567ab03f268c7c8ac7019f37d6b3d58ea6e7c392 (diff)
downloadfreebsd-ports-gnome-d4d1fee9739ea90d3564da3fef0dfcb419746b1a.tar.gz
freebsd-ports-gnome-d4d1fee9739ea90d3564da3fef0dfcb419746b1a.tar.zst
freebsd-ports-gnome-d4d1fee9739ea90d3564da3fef0dfcb419746b1a.zip
Fix unaligned access for alpha.
Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
Diffstat (limited to 'comms/conserver-com')
-rw-r--r--comms/conserver-com/Makefile1
-rw-r--r--comms/conserver-com/files/patch-access.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/comms/conserver-com/Makefile b/comms/conserver-com/Makefile
index face6e2c61e9..bb8c96d9cfb6 100644
--- a/comms/conserver-com/Makefile
+++ b/comms/conserver-com/Makefile
@@ -7,6 +7,7 @@
PORTNAME= conserver
PORTVERSION= 7.1.4
+PORTREVISION= 1
CATEGORIES= comms
MASTER_SITES= ftp://ftp.conserver.com/conserver/
PKGNAMESUFFIX= -com
diff --git a/comms/conserver-com/files/patch-access.c b/comms/conserver-com/files/patch-access.c
new file mode 100644
index 000000000000..7d79cd31aaa0
--- /dev/null
+++ b/comms/conserver-com/files/patch-access.c
@@ -0,0 +1,11 @@
+--- conserver/access.c.orig Mon Jan 21 19:48:49 2002
++++ conserver/access.c Wed Feb 27 10:19:12 2002
+@@ -117,7 +117,7 @@
+ netmask = htonl(netmask);
+ if (~netmask & pattern_addr)
+ netmask = 0xffffffff; /* compare entire addresses */
+- hostaddr = *(unsigned long int *)addr;
++ hostaddr = *(unsigned int *)addr;
+
+ Debug("Access check: host=%lx(%lx/%lx)", hostaddr & netmask,
+ hostaddr, netmask);