mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
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:
parent
863428d753
commit
dba3090a68
1 changed files with 3 additions and 0 deletions
|
@ -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__) */
|
||||
|
|
Loading…
Add table
Reference in a new issue