haiku biuld fix proposal, warning suppression.

This commit is contained in:
David Carlier 2021-06-19 09:14:43 +00:00
parent 076f815cec
commit a35a7d4f19
2 changed files with 4 additions and 1 deletions

View file

@ -194,8 +194,10 @@ static bool os_random_buf(void* buf, size_t buf_len) {
arc4random_buf(buf, buf_len);
return true;
}
#elif defined(__linux__)
#elif defined(__linux__) || defined(__HAIKU__)
#if defined(__linux__)
#include <sys/syscall.h>
#endif
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>