From 9b5170a723c9c78103fbd66c5c3b2b32a9af6702 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 19 Apr 2017 02:17:05 +0300 Subject: Fix clang compilation error --- bbot/tftp.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bbot/tftp.cxx b/bbot/tftp.cxx index 7249214..a8bb11b 100644 --- a/bbot/tftp.cxx +++ b/bbot/tftp.cxx @@ -36,9 +36,11 @@ namespace bbot addr.sin_addr.s_addr = htonl (INADDR_ANY); addr.sin_port = htons (0); - if (bind (fd, - reinterpret_cast (&addr), - sizeof (sockaddr_in)) == -1) + // Not to confuse with std::bind(). + // + if (::bind (fd, + reinterpret_cast (&addr), + sizeof (sockaddr_in)) == -1) throw_system_error (errno); // Create the map file. -- cgit v1.1