diff options
| author | Dominik Maier <domenukk@gmail.com> | 2020-06-23 11:01:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-23 11:01:22 +0200 |
| commit | 59e1a18197b08b08ad9e75b23fb6a5c740a0b9dd (patch) | |
| tree | 6d6064f523ee22f395caafa5587839424a10bb38 /libdislocator | |
| parent | 7119bf5d860657dab7afb60fab8b7ad5dc0ef222 (diff) | |
| parent | 8f98044d691bf604245554bec029f67b53819bd9 (diff) | |
| download | afl++-59e1a18197b08b08ad9e75b23fb6a5c740a0b9dd.tar.gz | |
Merge pull request #422 from devnexen/haiku__build_upd
Haiku build upd
Diffstat (limited to 'libdislocator')
| -rw-r--r-- | libdislocator/libdislocator.so.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libdislocator/libdislocator.so.c b/libdislocator/libdislocator.so.c index 73c3b3e3..063e3590 100644 --- a/libdislocator/libdislocator.so.c +++ b/libdislocator/libdislocator.so.c @@ -37,10 +37,12 @@ #include <sys/param.h> #endif -#if defined(__linux__) && !defined(__ANDROID__) +#if (defined(__linux__) && !defined(__ANDROID__)) || defined(__HAIKU__) #include <unistd.h> - #include <sys/syscall.h> - #include <malloc.h> + #ifdef __linux__ + #include <sys/syscall.h> + #include <malloc.h> + #endif #ifdef __NR_getrandom #define arc4random_buf(p, l) \ do { \ |
