avx_sig: Avoid libbsd dependency for modern Glibc
Due to arc4random functions are povided by Glibc 2.36. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D40310
This commit is contained in:
parent
b796bfce48
commit
0a09cfb3f7
@ -20,8 +20,13 @@
|
||||
#include <pthread_np.h>
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
#ifdef __GLIBC__
|
||||
#include <gnu/libc-version.h>
|
||||
#endif
|
||||
#if !defined(__GLIBC__) || (__GLIBC__ * 100 + __GLIBC_MINOR__) < 236
|
||||
#include <bsd/stdlib.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <signal.h>
|
||||
#include <stdatomic.h>
|
||||
#include <stdbool.h>
|
||||
|
Loading…
Reference in New Issue
Block a user