Commit de025de
CI: forward-declare getentropy for FreeBSD in getentropy.cc
getentropy is in unistd.h behind #if __BSD_VISIBLE on FreeBSD, which is
0 when BoringSSL's compile flags restrict POSIX visibility. Forward-
declaring extern "C" int getentropy(void*, size_t) at line 1 bypasses
the feature macro issue entirely.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0f1f45e commit de025de
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
78 | 88 | | |
79 | 89 | | |
80 | 90 | | |
| |||
0 commit comments