summaryrefslogtreecommitdiffstats
path: root/src/compat.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-20 19:34:52 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-20 19:37:07 +0200
commitbda274971e2120e672a4df165cee69d4b7a80d22 (patch)
tree87ade57c70b817e7d57b834e5998d70a9c15d696 /src/compat.h
parent7adeb6e88196a594ec3d36ffc1c658340ffcd7bc (diff)
downloadfastd-bda274971e2120e672a4df165cee69d4b7a80d22.tar
fastd-bda274971e2120e672a4df165cee69d4b7a80d22.zip
Define IP_FREEBIND if it is not provided
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compat.h b/src/compat.h
index e55f869..ea3f109 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -40,7 +40,6 @@
#include <netinet/in.h>
#include <netinet/if_ether.h>
-
#ifndef ETH_ALEN
#define ETH_ALEN 6
#endif
@@ -57,6 +56,9 @@ struct ethhdr {
} __attribute__((packed));
#endif
+#if defined(USE_FREEBIND) && !defined(IP_FREEBIND)
+#define IP_FREEBIND 15
+#endif
#ifndef HAVE_GET_CURRENT_DIR_NAME