[distcc] PATCH: MacOSX fixes

Benjamin Reed ranger at befunk.com
Tue May 6 03:06:05 GMT 2003


Here's a patch to fix a couple things on MacOSX.

1. The check for the number of CPUs should be the same as on the
    other BSDs.
2. A new reference to socklen_t was added in distcc 2.2, but types.h
    wasn't included so it didn't get set to size_t on systems without
    socklen_t.

Thanks again for distcc, it saves me so much time!  =)

-- 
[ Benjamin Reed a.k.a. Ranger Rick ] [ http://ranger.befunk.com/ ]
"You CAN'T clean the toilet, Neil, it'll lose all it's character!"
                                                          -- Vyvyan
-------------- next part --------------
diff -uNbr distcc-2.2/src/dparent.c distcc-2.2-new/src/dparent.c
--- distcc-2.2/src/dparent.c	Mon May  5 02:10:50 2003
+++ distcc-2.2-new/src/dparent.c	Mon May  5 22:52:36 2003
@@ -70,6 +70,7 @@
 #include "exec.h"
 #include "tempfile.h"
 #include "srvnet.h"
+#include "types.h"
 
 #ifndef WAIT_ANY
 #  define WAIT_ANY (-1)
diff -uNbr distcc-2.2/src/ncpus.c distcc-2.2-new/src/ncpus.c
--- distcc-2.2/src/ncpus.c	Fri Mar 21 02:58:48 2003
+++ distcc-2.2-new/src/ncpus.c	Mon May  5 22:50:02 2003
@@ -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


More information about the distcc mailing list