summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2010-07-01 17:44:13 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-01 17:44:13 +0200
commit16c42ce173e8c1e64b6d9275719a405c891b0d22 (patch)
treecc8fa8d51ef1bef346a32ac3e98f872f30c7bc05 /src
parent8b03daeb580fbed7d89fd396ed89a8adda88b45f (diff)
socket: define IP_FREEBIND if not defined
Diffstat (limited to 'src')
-rw-r--r--src/missing.h5
-rw-r--r--src/socket-util.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/missing.h b/src/missing.h
index 75bc5117f8..3b4cb9cdeb 100644
--- a/src/missing.h
+++ b/src/missing.h
@@ -26,6 +26,7 @@
#include <sys/resource.h>
#include <sys/syscall.h>
+#include <fcntl.h>
#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 344d6b98a4..5463ffbcbc 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;