ports/net/openvswitch/files/patch-lib_dns-resolve.c
Piotr Kubaj b10c7703f2 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)
2019-10-27 19:26:14 +00:00

10 lines
248 B
C

--- 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"