1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

socket: define IP_FREEBIND if not defined

This commit is contained in:
Kay Sievers 2010-07-01 17:44:13 +02:00 committed by Lennart Poettering
parent 8b03daeb58
commit 16c42ce173
2 changed files with 6 additions and 0 deletions

View File

@ -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);
}

View 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;