1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00

devel/caf: Fix build on gcc architectures. As described in the PR

submitted by Piotr Kubaj, netinet/ip.h needs sys/types.h.

PR:		242908
Submitted by:	Piotr Kubaj
Approved by:	ler (mentor, implicit)
This commit is contained in:
Craig Leres 2019-12-27 18:00:57 +00:00
parent efe89d654d
commit 6cebbebaef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=521016
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,15 @@
--- libcaf_io/src/io/network/default_multiplexer.cpp.orig 2019-12-27 13:41:05 UTC
+++ libcaf_io/src/io/network/default_multiplexer.cpp
@@ -63,11 +63,11 @@
# include <cerrno>
# include <fcntl.h>
# include <netdb.h>
+# include <sys/types.h>
# include <netinet/in.h>
# include <netinet/ip.h>
# include <netinet/tcp.h>
# include <sys/socket.h>
-# include <sys/types.h>
# include <unistd.h>
# ifdef CAF_POLL_MULTIPLEXER
# include <poll.h>

View File

@ -0,0 +1,10 @@
--- libcaf_io/src/io/network/ip_endpoint.cpp.orig 2019-12-27 13:50:38 UTC
+++ libcaf_io/src/io/network/ip_endpoint.cpp
@@ -30,6 +30,7 @@
# include <ws2tcpip.h>
# include <ws2ipdef.h>
#else
+# include <sys/types.h>
# include <arpa/inet.h>
# include <cerrno>
# include <netinet/in.h>

View File

@ -0,0 +1,10 @@
--- libcaf_io/src/io/network/native_socket.cpp.orig 2019-12-27 13:58:36 UTC
+++ libcaf_io/src/io/network/native_socket.cpp
@@ -47,6 +47,7 @@
# include <arpa/inet.h>
# include <cerrno>
# include <fcntl.h>
+# include <sys/types.h>
# include <netinet/in.h>
# include <netinet/ip.h>
# include <netinet/tcp.h>