Skip to content

Commit

Permalink
Merge pull request #189 from drchrispinnock/chrispinnock@netbsd
Browse files Browse the repository at this point in the history
Add NetBSD to the list of BSD OS in define
  • Loading branch information
hannesm authored Feb 3, 2024
2 parents 46e71a9 + b2a46c9 commit 8e8f836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rng/unix/mc_getrandom_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void raw_getrandom (uint8_t *data, uint32_t len) {
off += (size_t)r;
}
}
#elif (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__))
#elif (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__APPLE__)) || defined(__NetBSD__)
// on BSD and macOS, loop (in pieces of 256) getentropy
#if defined(__APPLE__)
// on macOS, getentropy is defined in sys/random.h (on BSD in unistd.h)
Expand Down

0 comments on commit 8e8f836

Please sign in to comment.