aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bbot/tftp.cxx8
1 files 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<sockaddr*> (&addr),
- sizeof (sockaddr_in)) == -1)
+ // Not to confuse with std::bind().
+ //
+ if (::bind (fd,
+ reinterpret_cast<sockaddr*> (&addr),
+ sizeof (sockaddr_in)) == -1)
throw_system_error (errno);
// Create the map file.