[Spice-devel] [PATCH 2/3] red-stream: add missing include

Roman Bogorodskiy bogorodskiy at gmail.com
Sat Apr 17 08:52:10 UTC 2021


On FreeBSD, netinet/in.h needs to be included to use IPPROTO_TCP.

Signed-off-by: Roman Bogorodskiy <bogorodskiy at gmail.com>
---
 server/red-stream.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/red-stream.cpp b/server/red-stream.cpp
index fee45f30..090883f3 100644
--- a/server/red-stream.cpp
+++ b/server/red-stream.cpp
@@ -24,6 +24,7 @@
 #include <netdb.h>
 #include <sys/socket.h>
 #include <netinet/tcp.h>
+#include <netinet/in.h>
 #else
 #include <ws2tcpip.h>
 #endif
-- 
2.30.1



More information about the Spice-devel mailing list