summaryrefslogtreecommitdiffstats
path: root/sbin/devd
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-06-01 06:56:35 +0000
committerdim <dim@FreeBSD.org>2012-06-01 06:56:35 +0000
commit2c17ed141e10a6836b6be341077010eacbd69e92 (patch)
tree7e114b5015f9a1905c49c1b63f45822994604e54 /sbin/devd
parent1728b56bf338725a030b3380a7fe7c45a9c158b0 (diff)
downloadFreeBSD-src-2c17ed141e10a6836b6be341077010eacbd69e92.zip
FreeBSD-src-2c17ed141e10a6836b6be341077010eacbd69e92.tar.gz
Make devd build with libc++.
MFC after: 3 days
Diffstat (limited to 'sbin/devd')
-rw-r--r--sbin/devd/devd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc
index 6eefec8..453d3df 100644
--- a/sbin/devd/devd.cc
+++ b/sbin/devd/devd.cc
@@ -807,7 +807,7 @@ create_socket(const char *name)
unlink(name);
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)
err(1, "fcntl");
- if (bind(fd, (struct sockaddr *) & sun, slen) < 0)
+ if (::bind(fd, (struct sockaddr *) & sun, slen) < 0)
err(1, "bind");
listen(fd, 4);
chown(name, 0, 0); /* XXX - root.wheel */
OpenPOWER on IntegriCloud