summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netcatchat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netcatchat.cpp b/netcatchat.cpp
index 377aa51..c5cd48b 100644
--- a/netcatchat.cpp
+++ b/netcatchat.cpp
@@ -38,7 +38,7 @@ static int create_server_socket(void) {
name.sin_family = AF_INET;
name.sin_addr.s_addr = htonl(INADDR_ANY);
name.sin_port = htons(PORT);
- if (bind(sock, (struct sockaddr*)&name, sizeof name) < 0) die_perror("bind");
+ if (::bind(sock, (struct sockaddr*)&name, sizeof name) < 0) die_perror("bind");
if (listen(sock, 16) < 0) die_perror("listen");