Make devd build with libc++.

MFC after:	3 days
This commit is contained in:
Dimitry Andric 2012-06-01 06:56:35 +00:00
parent e3726a671a
commit 5d586d29dd

View File

@ -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 */