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:
Dmitry Chagin 2023-05-29 11:08:35 +03:00
parent b796bfce48
commit 0a09cfb3f7

View file

@ -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>