Index: src/main.cc
===================================================================
--- src/main.cc	(revision 1466)
+++ src/main.cc	(working copy)
@@ -34,6 +34,7 @@
 #include <netinet/in.h>
 #include <sys/ioctl.h>
 #include <sys/resource.h>
+#include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 
@@ -296,7 +297,7 @@
       // continue, since a failed setsockopt() is sort of OK here.
    }
 
-   if (bind(listen_socket, (const sockaddr *)&local, sizeof(local)))
+   if (::bind(listen_socket, (const sockaddr *)&local, sizeof(local)))
       {
         perror("bind() failed");
         exit(1);
