]> err.no Git - systemd/commitdiff
socket: define IP_FREEBIND if not defined
authorKay Sievers <kay.sievers@suse.de>
Thu, 1 Jul 2010 15:44:13 +0000 (17:44 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Jul 2010 15:44:13 +0000 (17:44 +0200)
src/missing.h
src/socket-util.c

index 75bc5117f80e4036ade1b185af1f45a494fffdc5..3b4cb9cdeb28c70b3e4a018696f398c9b7da0fc2 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <sys/resource.h>
 #include <sys/syscall.h>
+#include <fcntl.h>
 
 #ifndef RLIMIT_RTTIME
 #define RLIMIT_RTTIME 15
 #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);
 }
index 344d6b98a44086c261e26b9bcbd8c314b5ce6f04..5463ffbcbcb4c41e587a469987598a5f898746ad 100644 (file)
@@ -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;