Fix compile error due to missing ENOMEM on some platforms
[fio.git] / helpers.c
... / ...
CommitLineData
1#include <malloc.h>
2#include <stdlib.h>
3#include <errno.h>
4
5#include "compiler/compiler.h"
6
7int __weak posix_memalign(void **ptr, size_t align, size_t size)
8{
9 *ptr = memalign(align, size);
10 if (*ptr)
11 return 0;
12
13 return ENOMEM;
14}
15
16int __weak posix_fallocate(int fd, off_t offset, off_t len)
17{
18 return 0;
19}