[PATCH] Fix missing typedef problem compiling talloc/testsuite.c

Green, Paul Paul.Green at stratus.com
Tue Jun 20 21:45:43 GMT 2006


This is a small patch to testsuite.c in talloc to have it pick up
sys/types.h.  The talloc.c source file uses sys/types.h, but testsuite.c
does not.

As far as I can see, sys/types.h is the only header (of those
referenced) that must contain a definition of off_t.  This patch is
needed for VOS, b/c the other headers don't define it.

It isn't clear to me where the master source for talloc is kept...if you
tell me where it is kept, and if I can check it in, I'll do so,
otherwise, I hope that someone else will pick it up.

Thanks
PG
--
Paul Green, Senior Technical Consultant, Stratus Technologies.
Voice: +1 978-461-7557; FAX: +1 978-461-3610; Mobile: +1 (978) 235-2451;
AIM: PaulGreen

-------------- next part --------------
diff -urpN old/talloc/testsuite.c new/talloc/testsuite.c
--- old/talloc/testsuite.c	Sun Apr 23 06:54:35 2006
+++ new/talloc/testsuite.c	Sun Apr 23 06:54:36 2006
@@ -33,6 +33,10 @@
 #include <stdarg.h>
 #endif
 
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
 #include <sys/time.h>
 #include <time.h>
 


More information about the samba-technical mailing list