From f24155cd29c6f30158d5c3df03c63b0c9ca30775 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 29 Sep 2001 21:35:08 +0000 Subject: Minor cleanup --- libc/stdlib/malloc/alloc.c | 2 +- libc/stdlib/malloc/malloc.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'libc') diff --git a/libc/stdlib/malloc/alloc.c b/libc/stdlib/malloc/alloc.c index a521cf2e8..99537a35d 100644 --- a/libc/stdlib/malloc/alloc.c +++ b/libc/stdlib/malloc/alloc.c @@ -52,7 +52,7 @@ void free_dbg(void *ptr, char *function, char *file, int line) void *realloc_dbg(void *ptr, size_t size, char *function, char *file, int line) { fprintf(stderr, "realloc of %p to %ld bytes at %s @%s;%d = ", ptr, - size, function, file, line); + (long)size, function, file, line); ptr = realloc(ptr, size); fprintf(stderr, "%p\n", ptr); return ptr; diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c index 432f893e8..9a3bbb332 100644 --- a/libc/stdlib/malloc/malloc.c +++ b/libc/stdlib/malloc/malloc.c @@ -54,8 +54,9 @@ */ #include -#define _POSIX_SOURCE +#ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE +#endif #include #include #include -- cgit v1.2.3