Skip to content

Commit c865ee1

Browse files
committed
Fix FreeBSD build by including utilstrencodings.h
`random.cpp` needs to explicitly include `utilstrencodings.h` to get `ARRAYLEN`. This fixes the FreeBSD build. This was broken in 84f4194.
1 parent 7f4db9a commit c865ee1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/random.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <sys/random.h>
3535
#endif
3636
#ifdef HAVE_SYSCTL_ARND
37+
#include <utilstrencodings.h> // for ARRAYLEN
3738
#include <sys/sysctl.h>
3839
#endif
3940

0 commit comments

Comments
 (0)