ports/devel/libspice-server/files/patch-server-net-utils.c
Roman Bogorodskiy 04759e9953 The Simple Protocol for Independent Computing Environments (SPICE) is
a remote display system built for virtual environments which allows
you to view a computing 'desktop' environment not only on the machine
where it is running, but from anywhere on the Internet and from a wide
variety of machine architectures.

This package contains the run-time libraries for any application that
wishes to be a SPICE server

WWW: http://spice-space.org/

PR:		225088
Submitted by:	olevole@olevole.ru
2018-01-12 16:43:42 +00:00

23 lines
507 B
C

--- server/net-utils.c.orig 2017-09-12 12:00:11 UTC
+++ server/net-utils.c
@@ -23,6 +23,9 @@
#include <fcntl.h>
#include <stdbool.h>
#include <string.h>
+#include <sys/types.h>
+#include <arpa/inet.h>
+#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
@@ -31,6 +34,10 @@
#include "net-utils.h"
+#if !defined(SOL_TCP) && defined(IPPROTO_TCP)
+#define SOL_TCP IPPROTO_TCP
+#endif
+
/**
* red_socket_set_keepalive:
* @fd: a socket file descriptor