diff options
Diffstat (limited to 'src/lib9/fmt/fmtstr.c')
| -rw-r--r-- | src/lib9/fmt/fmtstr.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <u.h> #include <libc.h> +#else +#include <stdlib.h> +#include "plan9.h" +#include "fmt.h" #include "fmtdef.h" +#endif static int fmtStrFlush(Fmt *f) |
