diff options
-rw-r--r-- | system/include/libc/sys/_default_fcntl.h | 5 | ||||
-rw-r--r-- | tests/runner.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/system/include/libc/sys/_default_fcntl.h b/system/include/libc/sys/_default_fcntl.h index d44a858e..0bc4fcfa 100644 --- a/system/include/libc/sys/_default_fcntl.h +++ b/system/include/libc/sys/_default_fcntl.h @@ -204,6 +204,11 @@ extern int _open64 _PARAMS ((const char *, int, ...)); #endif #endif +/* XXX Emscripten */ +#define POSIX_FADV_DONTNEED 135 +int posix_fadvise(int fd, off_t offset, off_t len, int advice); +int posix_fallocate(int fd, off_t offset, off_t len); + #ifdef __cplusplus } #endif diff --git a/tests/runner.py b/tests/runner.py index dfcd7800..1aca1e03 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -2532,8 +2532,6 @@ if 'benchmark' not in str(sys.argv): self.do_test(src, expected, post_build=add_pre_run, extra_emscripten_args=['-H', 'libc/fcntl.h']) def test_fcntl_misc(self): - return self.skip('TODO: add fadvise.h') - def add_pre_run(filename): src = open(filename, 'r').read().replace( '// {{PRE_RUN_ADDITIONS}}', |