1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

Build: Modify various parts to allow the build to succeed on FreeBSD

This commit is contained in:
Laurent Cimon 2020-10-17 16:25:13 -04:00 committed by Andreas Kling
parent a82c56f9f7
commit b4790010a8
5 changed files with 11 additions and 6 deletions

View file

@ -33,7 +33,7 @@
# include <stdlib.h>
#endif
#if defined(__linux__)
#if defined(__unix__)
# include <unistd.h>
#endif
@ -47,7 +47,7 @@ inline void fill_with_random(void* buffer, size_t length)
{
#if defined(__serenity__)
arc4random_buf(buffer, length);
#elif defined(__linux__) or defined(__APPLE__)
#elif defined(__unix__) or defined(__APPLE__)
int rc = getentropy(buffer, length);
(void)rc;
#endif