mirror of
https://git.freebsd.org/ports.git
synced 2025-06-12 08:10:31 -04:00
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
23 lines
507 B
C
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
|