From: Kay Sievers Date: Thu, 1 Jul 2010 15:44:13 +0000 (+0200) Subject: socket: define IP_FREEBIND if not defined X-Git-Tag: v1~81 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16c42ce173e8c1e64b6d9275719a405c891b0d22;p=systemd socket: define IP_FREEBIND if not defined --- diff --git a/src/missing.h b/src/missing.h index 75bc5117..3b4cb9cd 100644 --- a/src/missing.h +++ b/src/missing.h @@ -26,6 +26,7 @@ #include #include +#include #ifndef RLIMIT_RTTIME #define RLIMIT_RTTIME 15 @@ -43,6 +44,10 @@ #define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8) #endif +#ifndef IP_FREEBIND +#define IP_FREEBIND 15 +#endif + static inline int pivot_root(const char *new_root, const char *put_old) { return syscall(SYS_pivot_root, new_root, put_old); } diff --git a/src/socket-util.c b/src/socket-util.c index 344d6b98..5463ffbc 100644 --- a/src/socket-util.c +++ b/src/socket-util.c @@ -33,6 +33,7 @@ #include "macro.h" #include "util.h" #include "socket-util.h" +#include "missing.h" int socket_address_parse(SocketAddress *a, const char *s) { int r;