[Samba] Compiling on OS X
Jeremy Allison
jra at samba.org
Wed Nov 10 22:17:01 GMT 2004
On Wed, Nov 10, 2004 at 02:08:17PM -0800, Andrew Cunningham wrote:
> On the surface they just seem to have patched in OpenDirectory support
> - what is so horrible about that?
I got as far as this :
--- samba/source/lib/util_sec.c.orig Thu Dec 18 15:12:42 2003
+++ samba/source/lib/util_sec.c Fri Dec 19 08:31:12 2003
@@ -43,6 +43,20 @@
#define BOOL int
#endif
+#ifdef USE_SETRESUID
+#undef USE_SETRESUID
+#endif
+
+#ifdef USE_SETREUID
+#undef USE_SETREUID
+#endif
+
+#ifdef USE_SETUIDX
+#undef USE_SETUIDX
+#endif
+
+#define USE_SETEUID 1
+
/* are we running as non-root? This is used by the regresison test code,
and potentially also for sites that want non-root smbd */
static uid_t initial_uid;
------------------------------------------------------------------------------
and threw up :-). This is not how to write portable code.
Jeremy.
More information about the samba
mailing list