diff options
author | begasus <begasus@gmail.com> | 2021-04-05 13:02:26 +0000 |
---|---|---|
committer | begasus <begasus@gmail.com> | 2021-04-05 13:02:26 +0000 |
commit | 43b1a0d46bd7fb55e2baeadd5d105e60aecdee9c (patch) | |
tree | d5733fea6e0511ecc4386f26b15712f7c8dafd94 | |
parent | a02d84a11cb28bc620bf24bda322e14701ad726f (diff) | |
download | afl++-43b1a0d46bd7fb55e2baeadd5d105e60aecdee9c.tar.gz |
Declare private api __kern_write for Haiku
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 9bb6114b..50ecba80 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -78,6 +78,10 @@ #define MAP_INITIAL_SIZE MAP_SIZE #endif +#if defined(__HAIKU__) + extern ssize_t _kern_write(int fd, off_t pos, const void *buffer, size_t bufferSize); +#endif // HAIKU + u8 __afl_area_initial[MAP_INITIAL_SIZE]; u8 * __afl_area_ptr_dummy = __afl_area_initial; u8 * __afl_area_ptr = __afl_area_initial; |