summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-16 00:11:46 +0000
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-16 00:11:46 +0000
commitf41ea24e97f05f9ddb66547ef7d0aae95db88db1 (patch)
treee7ae7a76f6d627dc145769d19a7c78f16b35e572 /osdep
parent3c655a4b8479a8c4a332cc4f36315c7841da34e7 (diff)
downloadinfinitytier-f41ea24e97f05f9ddb66547ef7d0aae95db88db1.tar.gz
infinitytier-f41ea24e97f05f9ddb66547ef7d0aae95db88db1.zip
Build fixes.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/ManagedRoute.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/osdep/ManagedRoute.cpp b/osdep/ManagedRoute.cpp
index 0afac440..118fc7d5 100644
--- a/osdep/ManagedRoute.cpp
+++ b/osdep/ManagedRoute.cpp
@@ -41,7 +41,9 @@
#include <arpa/inet.h>
#include <net/route.h>
#include <net/if.h>
+#ifdef __BSD__
#include <net/if_dl.h>
+#endif
#include <ifaddrs.h>
#endif
@@ -264,7 +266,7 @@ static void _routeCmd(const char *op,const InetAddress &target,const InetAddress
#endif // __WINDOWS__ --------------------------------------------------------
#ifndef ZT_ROUTING_SUPPORT_FOUND
-#error ManagedRoute.cpp has no support for managing routes on this platform! You'll need to check and see if one of the existing ones will work and make sure proper defines are set, or write one. Please do a Github pull request if you do this for a new OS!
+#error "ManagedRoute.cpp has no support for managing routes on this platform! You'll need to check and see if one of the existing ones will work and make sure proper defines are set, or write one. Please do a Github pull request if you do this for a new OS."
#endif
} // anonymous namespace