aboutsummaryrefslogtreecommitdiff
path: root/net/quagga
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2015-04-17 09:18:11 +0000
committerMathieu Arnold <mat@FreeBSD.org>2015-04-17 09:18:11 +0000
commite517dd5b487cfff2af87a440c29a8f4b5ba0ed9b (patch)
tree564c31397a7cff7448cc743984fc4a72240a9453 /net/quagga
parent3203804a287e4f9560d07ec7b7aac772ff1cda35 (diff)
downloadports-e517dd5b487cfff2af87a440c29a8f4b5ba0ed9b.tar.gz
ports-e517dd5b487cfff2af87a440c29a8f4b5ba0ed9b.zip
Notes
Diffstat (limited to 'net/quagga')
-rw-r--r--net/quagga/Makefile2
-rw-r--r--net/quagga/files/patch-zebra_kernel__socket.c29
2 files changed, 30 insertions, 1 deletions
diff --git a/net/quagga/Makefile b/net/quagga/Makefile
index 3d9b975a6ed6..56a6c98f3531 100644
--- a/net/quagga/Makefile
+++ b/net/quagga/Makefile
@@ -3,7 +3,7 @@
PORTNAME= quagga
PORTVERSION= 0.99.24.1
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= SAVANNAH
diff --git a/net/quagga/files/patch-zebra_kernel__socket.c b/net/quagga/files/patch-zebra_kernel__socket.c
new file mode 100644
index 000000000000..0c5e65f8bba5
--- /dev/null
+++ b/net/quagga/files/patch-zebra_kernel__socket.c
@@ -0,0 +1,29 @@
+From 3e07588e6c2d11464b458cef3965ae31b5f99181 Mon Sep 17 00:00:00 2001
+From: Greg Troxel <gdt@ir.bbn.com>
+Date: Mon, 23 Mar 2015 15:16:29 -0400
+Subject: [PATCH] Fix alignment assumptions on non-RT_ROUNDUP platforms.
+
+The comment said that apple uses int and BSD traditionally used long,
+but the code was backwards. This fixes apple to be int, and otherwise
+long. That should make FreeBSD, which aligns to long, work correctly,
+even without using SA_SIZE.
+
+(cherry picked from commit 941789e470199df4f612368f669ecc0fd096fb9a)
+---
+ zebra/kernel_socket.c | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+--- zebra/kernel_socket.c.orig 2015-03-07 06:58:00 UTC
++++ zebra/kernel_socket.c
+@@ -78,9 +78,9 @@ extern struct zebra_t zebrad;
+
+ /* OS X (Xcode as of 2014-12) is known not to define RT_ROUNDUP */
+ #ifdef __APPLE__
+-#define ROUNDUP_TYPE long
+-#else
+ #define ROUNDUP_TYPE int
++#else
++#define ROUNDUP_TYPE long
+ #endif
+
+ #define ROUNDUP(a) \