*BSD: Fix getentropy() declaration.

Thanks to dundargoc.
This commit is contained in:
Mike Pall 2022-03-07 09:45:04 +01:00
parent c4adf49204
commit c93890ed8b

View File

@ -126,7 +126,7 @@ static PRGR libfunc_rgr;
#endif #endif
#if LJ_TARGET_HAS_GETENTROPY #if LJ_TARGET_HAS_GETENTROPY
extern int getentropy(void *buf, size_t len); extern int getentropy(void *buf, size_t len)
#ifdef __ELF__ #ifdef __ELF__
__attribute__((weak)) __attribute__((weak))
#endif #endif