build: Disable Ethernet face support on OSX with Boost 1.56

Change-Id: Ib3415d5fa1d64e76877bb0f1dcfda783cfe47ca7
Refs: #1877
diff --git a/.waf-tools/boost-kqueue.py b/.waf-tools/boost-kqueue.py
new file mode 100644
index 0000000..a2ec732
--- /dev/null
+++ b/.waf-tools/boost-kqueue.py
@@ -0,0 +1,22 @@
+# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
+#
+# Copyright (c) 2014, Regents of the University of California
+#
+# GPL 3.0 license, see the COPYING.md file for more information
+
+from waflib import Configure
+
+BOOST_ASIO_HAS_KQUEUE_CHECK = '''
+#include <boost/asio.hpp>
+#if defined(BOOST_ASIO_HAS_KQUEUE) and BOOST_VERSION >= 105600
+#error "Ethernet face support cannot be enabled on this platform"
+#endif
+'''
+
+@Configure.conf
+def check_asio_pcap_support(conf):
+    if conf.check_cxx(msg='Checking if Ethernet face support can be enabled',
+                      fragment=BOOST_ASIO_HAS_KQUEUE_CHECK,
+                      features='cxx', use='BOOST', mandatory=False):
+        conf.define('HAVE_ASIO_PCAP_SUPPORT', 1)
+        conf.env['HAVE_ASIO_PCAP_SUPPORT'] = True