Skip to content

Commit

Permalink
Add a missing #include
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Jul 22, 2024
1 parent f5b2b82 commit d829e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third-party/mimalloc/src/prim/unix/prim.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ terms of the MIT license. A copy of the license can be found in the file
#include <sys/mman.h> // mmap
#include <unistd.h> // sysconf
#include <fcntl.h> // open, close, read, access
#include <stdlib.h>

#if defined(__linux__)
#include <features.h>
Expand Down Expand Up @@ -770,7 +771,6 @@ bool _mi_prim_random_buf(void* buf, size_t buf_len) {
defined(__sun) || \
(defined(__APPLE__) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7))

#include <stdlib.h>
bool _mi_prim_random_buf(void* buf, size_t buf_len) {
arc4random_buf(buf, buf_len);
return true;
Expand Down

0 comments on commit d829e42

Please sign in to comment.