svn commit: r236540 - stable/9/sbin/devd

Dimitry Andric dim at FreeBSD.org
Mon Jun 4 06:45:49 UTC 2012


Author: dim
Date: Mon Jun  4 06:45:49 2012
New Revision: 236540
URL: http://svn.freebsd.org/changeset/base/236540

Log:
  MFC r236388:
  
  Make devd build with libc++.

Modified:
  stable/9/sbin/devd/devd.cc
Directory Properties:
  stable/9/sbin/devd/   (props changed)

Modified: stable/9/sbin/devd/devd.cc
==============================================================================
--- stable/9/sbin/devd/devd.cc	Mon Jun  4 06:43:01 2012	(r236539)
+++ stable/9/sbin/devd/devd.cc	Mon Jun  4 06:45:49 2012	(r236540)
@@ -798,7 +798,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 */


More information about the svn-src-stable-9 mailing list