diff options
author | VinÃcius Zavam <egypcio@googlemail.com> | 2022-11-05 18:41:17 +0000 |
---|---|---|
committer | VinÃcius Zavam <egypcio@googlemail.com> | 2022-11-05 18:41:17 +0000 |
commit | 8a879395abcae7037818f2f6d2478b5b0db4c622 (patch) | |
tree | 0480f26f9b0ff4baac2778c3497bdaeaf22f082c /src/lib | |
parent | c98ec6d00157c7114d1e09e8da39110140809ab9 (diff) | |
download | tor-8a879395abcae7037818f2f6d2478b5b0db4c622.tar.gz tor-8a879395abcae7037818f2f6d2478b5b0db4c622.zip |
make tor_libc_get_name aware of NetBSD
* __NETBSD_SOURCE was used here to verify if we are running on NetBSD
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/osinfo/libc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/osinfo/libc.c b/src/lib/osinfo/libc.c index 4af8e2f413..9206b99611 100644 --- a/src/lib/osinfo/libc.c +++ b/src/lib/osinfo/libc.c @@ -31,9 +31,9 @@ const char * tor_libc_get_name(void) { -#ifdef __BSD_VISIBLE +#ifdef __BSD_VISIBLE || __NETBSD_SOURCE return "BSD"; -#endif /* defined(__BSD_VISIBLE) */ +#endif /* defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) */ #ifdef __GLIBC__ return "Glibc"; #else /* !defined(__GLIBC__) */ |