mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Fix ipv6 on 8 and possibly 9.
Obtained from: http://git.savannah.gnu.org/gitweb/?p=quagga.git;a=patch;h=3e07588e6c2d11464b458cef3965ae31b5f99181 Sponsored by: Absolight
This commit is contained in:
parent
3203804a28
commit
e517dd5b48
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=384144
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= quagga
|
||||
PORTVERSION= 0.99.24.1
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= SAVANNAH
|
||||
|
||||
|
29
net/quagga/files/patch-zebra_kernel__socket.c
Normal file
29
net/quagga/files/patch-zebra_kernel__socket.c
Normal file
@ -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) \
|
Loading…
Reference in New Issue
Block a user