build+face: Fixing regression that broke ethernet support
As of this commit, libpcap is required unless specifically disabled
using --without-libpcap parameter during configure stage.
Change-Id: Iec6f8bd9babfe4da193c98a49043b08319311106
Refs: #1472
diff --git a/.waf-tools/unix-socket.py b/.waf-tools/unix-socket.py
index f697f0c..d3c6b31 100644
--- a/.waf-tools/unix-socket.py
+++ b/.waf-tools/unix-socket.py
@@ -4,6 +4,8 @@
#
# GPL 3.0 license, see the COPYING.md file for more information
+from waflib import Options
+
BOOST_ASIO_HAS_LOCAL_SOCKETS_CHECK = '''
#include <iostream>
#include <boost/asio.hpp>
@@ -17,9 +19,10 @@
}
'''
-def options(opt):
+def addUnixOptions(self, opt):
opt.add_option('--force-unix-socket', action='store_true', default=False,
dest='force_unix_socket', help='''Forcefully enable UNIX sockets support''')
+setattr(Options.OptionsContext, "addUnixOptions", addUnixOptions)
def configure(conf):
def boost_asio_has_local_sockets():