[distcc] OS X fix
Ben Hines
bhines at alumni.ucsd.edu
Sun Apr 27 08:01:15 GMT 2003
Mac OS X needs to use the BSD ncpus code, or an error is generated:
distccd[11267]: (dcc_ncpus) ERROR: sysconf(_SC_NPROCESSORS_ONLN)
failed: Undefined error: 0
Here is the patch (to 2.0.1):
--- src/ncpus.c.orig 2003-04-27 00:44:06.000000000 -0700
+++ src/ncpus.c 2003-04-27 00:44:14.000000000 -0700
@@ -64,7 +64,7 @@
}
-#elif defined(__FreeBSD__) || defined(__OpenBSD__) ||
defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__OpenBSD__) ||
defined(__NetBSD__) || defined(__APPLE__)
/*
http://www.FreeBSD.org/cgi/
man.cgi?query=sysctl&sektion=3&manpath=FreeBSD+4.6-stable
http://www.openbsd.org/cgi-bin/
man.cgi?query=sysctl&sektion=3&manpath=OpenBSD+Current
Also, i started messing with zeroconf/rendezvous support. I already
have distccd advertising - (username._distccd._tcp) It should be easy
to get distcc finding servers, too, that's next.
-Ben
More information about the distcc
mailing list