Skip to content

Commit

Permalink
Fix FreeBSD build by including utilstrencodings.h
Browse files Browse the repository at this point in the history
`random.cpp` needs to explicitly include `utilstrencodings.h` to get
`ARRAYLEN`. This fixes the FreeBSD build.
  • Loading branch information
Fuzzbawls committed Apr 14, 2021
1 parent 630931f commit 909473e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/random.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <sys/random.h>
#endif
#ifdef HAVE_SYSCTL_ARND
#include "utilstrencodings.h"
#include <sys/sysctl.h>
#endif

Expand Down

0 comments on commit 909473e

Please sign in to comment.