From 2f820f3b1f639fee30f5bfa31aa3191758573f25 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 2 Aug 2013 18:34:39 -0400 Subject: [PATCH] add legacy function valloc it was already declared in stdlib.h, but not defined anywhere. --- src/legacy/valloc.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/legacy/valloc.c diff --git a/src/legacy/valloc.c b/src/legacy/valloc.c new file mode 100644 index 00000000..e48cf214 --- /dev/null +++ b/src/legacy/valloc.c @@ -0,0 +1,8 @@ +#define _BSD_SOURCE +#include +#include + +void *valloc(size_t size) +{ + return memalign(PAGE_SIZE, size); +} -- 2.25.1