return BSD if tor_libc_get_name sees __BSD_VISIBLE

* __BSD_VISIBLE is defined by systems like FreeBSD and OpenBSD;
  * that also extends to DragonFlyBSD;
  * it's used on stdlib.h and ctypes.h on those systems.
This commit is contained in:
Vinícius Zavam 2022-11-05 18:17:12 +00:00
parent 863428d753
commit dba3090a68
No known key found for this signature in database
GPG Key ID: 415C653413B43475

View File

@ -31,6 +31,9 @@
const char *
tor_libc_get_name(void)
{
#ifdef __BSD_VISIBLE
return "BSD";
#endif /* defined(__BSD_VISIBLE) */
#ifdef __GLIBC__
return "Glibc";
#else /* !defined(__GLIBC__) */