diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-10-28 03:26:14 +0800 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-10-28 03:26:14 +0800 |
commit | b10c7703f2905c3ef6aef2a877f2cc261ab9f553 (patch) | |
tree | c05761ca8b667a807dd7b1f536d2837ee7e5fc29 /net | |
parent | 0ab23fc51434a6b372ca366ecbef1929eaf4e9dd (diff) | |
download | freebsd-ports-gnome-b10c7703f2905c3ef6aef2a877f2cc261ab9f553.tar.gz freebsd-ports-gnome-b10c7703f2905c3ef6aef2a877f2cc261ab9f553.tar.zst freebsd-ports-gnome-b10c7703f2905c3ef6aef2a877f2cc261ab9f553.zip |
net/openvswitch: fix build on GCC architectures
Use C11 compiler:
./include/openvswitch/ofp-actions.h:1302: error: bit-field 'build_assert_failed' width not an integer constant
./include/openvswitch/ofp-actions.h:1302: error: bit-field 'build_assert_failed' width not an integer constant
./include/openvswitch/ofp-actions.h:1302: error: bit-field 'build_assert_failed' width not an integer constant
Include sys/socket.h in lib/dns-resolve.c to make AF_INET available.
PR: 241329
Approved by: koue@chaosophia.net (maintainer), linimon (mentor)
Diffstat (limited to 'net')
-rw-r--r-- | net/openvswitch/Makefile | 3 | ||||
-rw-r--r-- | net/openvswitch/files/patch-lib_dns-resolve.c | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/net/openvswitch/Makefile b/net/openvswitch/Makefile index 22f0e33ae97f..76791ed5d9b6 100644 --- a/net/openvswitch/Makefile +++ b/net/openvswitch/Makefile @@ -15,7 +15,8 @@ BROKEN_mips64= fails to compile: ofp-actions.h:486: flexible array member in ot BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} -USES= cpe gmake libtool perl5 pkgconfig python:2.7 shebangfix ssl +USES= compiler:c11 cpe gmake libtool perl5 pkgconfig python:2.7 \ + shebangfix ssl SHEBANG_FILES= ovn/utilities/ovndb-servers.ocf \ utilities/bugtool/ovs-bugtool-ovs-ofctl-loop-over-bridges \ utilities/ovs-docker \ diff --git a/net/openvswitch/files/patch-lib_dns-resolve.c b/net/openvswitch/files/patch-lib_dns-resolve.c new file mode 100644 index 000000000000..ea52505fe871 --- /dev/null +++ b/net/openvswitch/files/patch-lib_dns-resolve.c @@ -0,0 +1,10 @@ +--- lib/dns-resolve.c.orig 2019-10-18 14:20:09 UTC ++++ lib/dns-resolve.c +@@ -22,6 +22,7 @@ + #include <arpa/nameser.h> + #include <errno.h> + #include <string.h> ++#include <sys/socket.h> + #include <sys/stat.h> + #include <unbound.h> + #include "hash.h" |