svn commit: r530742 - head/devel/caf/files
Piotr Kubaj
pkubaj at FreeBSD.org
Sun Apr 5 03:02:38 UTC 2020
Author: pkubaj
Date: Sun Apr 5 02:56:10 2020
New Revision: 530742
URL: https://svnweb.freebsd.org/changeset/ports/530742
Log:
devel/caf: fix build on GCC architectures
Some files require including sys/types.h before other headers:
/usr/include/netinet/ip.h:227:2: error: 'u_short' does not name a type; did you mean 'short'?
227 | u_short ippseudo_len; /* protocol length */
| ^~~~~~~
| short
PR: 245364
Approved by: leres (maintainer)
MFH: 2020Q2 (build fix blanket)
Added:
head/devel/caf/files/
head/devel/caf/files/patch-libcaf__io_src_io_network_default__multiplexer.cpp (contents, props changed)
head/devel/caf/files/patch-libcaf__io_src_io_network_ip__endpoint.cpp (contents, props changed)
head/devel/caf/files/patch-libcaf__io_src_io_network_native__socket.cpp (contents, props changed)
Added: head/devel/caf/files/patch-libcaf__io_src_io_network_default__multiplexer.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/caf/files/patch-libcaf__io_src_io_network_default__multiplexer.cpp Sun Apr 5 02:56:10 2020 (r530742)
@@ -0,0 +1,12 @@
+--- libcaf_io/src/io/network/default_multiplexer.cpp.orig 2020-04-05 00:30:36 UTC
++++ libcaf_io/src/io/network/default_multiplexer.cpp
+@@ -59,6 +59,9 @@
+ # include <ws2ipdef.h>
+ # include <ws2tcpip.h>
+ #else
++# ifdef __FreeBSD__
++# include <sys/types.h>
++# endif
+ # include <arpa/inet.h>
+ # include <cerrno>
+ # include <fcntl.h>
Added: head/devel/caf/files/patch-libcaf__io_src_io_network_ip__endpoint.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/caf/files/patch-libcaf__io_src_io_network_ip__endpoint.cpp Sun Apr 5 02:56:10 2020 (r530742)
@@ -0,0 +1,12 @@
+--- libcaf_io/src/io/network/ip_endpoint.cpp.orig 2020-04-05 00:36:43 UTC
++++ libcaf_io/src/io/network/ip_endpoint.cpp
+@@ -30,6 +30,9 @@
+ # include <ws2tcpip.h>
+ # include <ws2ipdef.h>
+ #else
++# ifdef __FreeBSD__
++# include <sys/types.h>
++# endif
+ # include <arpa/inet.h>
+ # include <cerrno>
+ # include <netinet/in.h>
Added: head/devel/caf/files/patch-libcaf__io_src_io_network_native__socket.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/caf/files/patch-libcaf__io_src_io_network_native__socket.cpp Sun Apr 5 02:56:10 2020 (r530742)
@@ -0,0 +1,12 @@
+--- libcaf_io/src/io/network/native_socket.cpp.orig 2020-04-05 00:18:01 UTC
++++ libcaf_io/src/io/network/native_socket.cpp
+@@ -44,6 +44,9 @@
+ # include <ws2ipdef.h>
+ # include <ws2tcpip.h>
+ #else
++# ifdef __FreeBSD__
++# include <sys/types.h>
++# endif
+ # include <arpa/inet.h>
+ # include <cerrno>
+ # include <fcntl.h>
More information about the svn-ports-head
mailing list