From e5aa96acbf9107cd78f2536364c36f9a15751313 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 26 Dec 2004 21:50:14 +0000 Subject: clean up for unix port --- src/lib9/fmt/fmtstr.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lib9/fmt/fmtstr.c') diff --git a/src/lib9/fmt/fmtstr.c b/src/lib9/fmt/fmtstr.c index 0b227166..b4b68185 100644 --- a/src/lib9/fmt/fmtstr.c +++ b/src/lib9/fmt/fmtstr.c @@ -11,9 +11,20 @@ * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. */ +/* + * Plan 9 port version must include libc.h in order to + * get Plan 9 debugging malloc, which sometimes returns + * different pointers than the standard malloc. + */ +#ifdef PLAN9PORT #include #include +#else +#include +#include "plan9.h" +#include "fmt.h" #include "fmtdef.h" +#endif static int fmtStrFlush(Fmt *f) -- cgit v1.2.3