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/daemon/core/face-uri.cpp b/daemon/core/face-uri.cpp
index 5cfaf72..c9ec548 100644
--- a/daemon/core/face-uri.cpp
+++ b/daemon/core/face-uri.cpp
@@ -25,9 +25,9 @@
#include "face-uri.hpp"
#include "core/logger.hpp"
-#ifdef HAVE_PCAP
+#ifdef HAVE_LIBPCAP
#include "face/ethernet.hpp"
-#endif // HAVE_PCAP
+#endif // HAVE_LIBPCAP
#include <boost/regex.hpp>
@@ -130,14 +130,14 @@
return uri;
}
-#ifdef HAVE_PCAP
+#ifdef HAVE_LIBPCAP
FaceUri::FaceUri(const ethernet::Address& address)
: m_isV6(false)
{
m_scheme = "ether";
m_host = address.toString();
}
-#endif // HAVE_PCAP
+#endif // HAVE_LIBPCAP
FaceUri
FaceUri::fromDev(const std::string& ifname)