svn commit: r432479 - in head/net/bird: . files
Alexander V. Chernikov
melifaro at FreeBSD.org
Thu Jan 26 10:04:37 UTC 2017
Author: melifaro (src committer)
Date: Thu Jan 26 10:04:35 2017
New Revision: 432479
URL: https://svnweb.freebsd.org/changeset/ports/432479
Log:
Apply sysdep-bsd-sysio.h patch by default.
Reported by: olivier
Approved by: az(implicit)
Added:
head/net/bird/files/patch-sysdep-bsd-sysio.h
- copied unchanged from r432478, head/net/bird/files/sysdep-bsd-sysio.h
Deleted:
head/net/bird/files/sysdep-bsd-sysio.h
Modified:
head/net/bird/Makefile
Modified: head/net/bird/Makefile
==============================================================================
--- head/net/bird/Makefile Thu Jan 26 09:41:06 2017 (r432478)
+++ head/net/bird/Makefile Thu Jan 26 10:04:35 2017 (r432479)
@@ -3,6 +3,7 @@
PORTNAME?= bird
PORTVERSION= 1.6.3
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://bird.network.cz/pub/bird/ \
http://bird.mpls.in/distfiles/bird/
Copied: head/net/bird/files/patch-sysdep-bsd-sysio.h (from r432478, head/net/bird/files/sysdep-bsd-sysio.h)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/bird/files/patch-sysdep-bsd-sysio.h Thu Jan 26 10:04:35 2017 (r432479, copy of r432478, head/net/bird/files/sysdep-bsd-sysio.h)
@@ -0,0 +1,23 @@
+diff --git sysdep/bsd/sysio.h sysdep/bsd/sysio.h
+index 2610a47..9b10e6e 100644
+--- sysdep/bsd/sysio.h
++++ sysdep/bsd/sysio.h
+@@ -9,6 +9,7 @@
+ #include <net/if_dl.h>
+ #include <netinet/in_systm.h> // Workaround for some BSDs
+ #include <netinet/ip.h>
++#include <sys/param.h>
+
+
+ #ifdef __NetBSD__
+@@ -179,8 +180,8 @@ sk_prepare_ip_header(sock *s, void *hdr, int dlen)
+ ip->ip_src = ipa_to_in4(s->saddr);
+ ip->ip_dst = ipa_to_in4(s->daddr);
+
+-#ifdef __OpenBSD__
+- /* OpenBSD expects ip_len in network order, other BSDs expect host order */
++#if (defined __OpenBSD__) || (defined __DragonFly__) || (defined __FreeBSD__ && (__FreeBSD_version >= 1100030))
++ /* Different BSDs have different expectations of ip_len endianity */
+ ip->ip_len = htons(ip->ip_len);
+ #endif
+ }
More information about the svn-ports-all
mailing list