diff options
Diffstat (limited to 'gnu/usr.bin/cvs/lib/valloc.c')
-rw-r--r-- | gnu/usr.bin/cvs/lib/valloc.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gnu/usr.bin/cvs/lib/valloc.c b/gnu/usr.bin/cvs/lib/valloc.c index ce37da7ad3a..674b60f6e91 100644 --- a/gnu/usr.bin/cvs/lib/valloc.c +++ b/gnu/usr.bin/cvs/lib/valloc.c @@ -1,14 +1,18 @@ /* valloc -- return memory aligned to the page size. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "system.h" + #ifndef HAVE_GETPAGESIZE #define getpagesize() 4096 #endif -extern char *malloc (); - -char * +void * valloc (bytes) - int bytes; + size_t bytes; { long pagesize; char *ret; |