From 16c42ce173e8c1e64b6d9275719a405c891b0d22 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 1 Jul 2010 17:44:13 +0200 Subject: [PATCH] socket: define IP_FREEBIND if not defined --- src/missing.h | 5 +++++ src/socket-util.c | 1 + 2 files changed, 6 insertions(+) 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; -- 2.39.5