mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
fix: %s/param.sh/param.h
while here also reflect the check for __NETBSD_SOURCE on tor_libc_get_version_str
This commit is contained in:
parent
cc95be8e17
commit
bd64e6bd08
1 changed files with 3 additions and 3 deletions
|
@ -46,8 +46,8 @@ tor_libc_get_name(void)
|
||||||
const char *
|
const char *
|
||||||
tor_libc_get_version_str(void)
|
tor_libc_get_version_str(void)
|
||||||
{
|
{
|
||||||
#ifdef __BSD_VISIBLE
|
#ifdef __BSD_VISIBLE || __NETBSD_SOURCE
|
||||||
#include <sys/param.sh>
|
#include <sys/param.h>
|
||||||
#ifdef __DragonFly_version
|
#ifdef __DragonFly_version
|
||||||
return STR(__DragonFly_version);
|
return STR(__DragonFly_version);
|
||||||
#endif
|
#endif
|
||||||
|
@ -60,7 +60,7 @@ tor_libc_get_version_str(void)
|
||||||
#ifdef OpenBSD
|
#ifdef OpenBSD
|
||||||
return STR(OpenBSD);
|
return STR(OpenBSD);
|
||||||
#endif
|
#endif
|
||||||
#endif /* defined(__BSD_VISIBLE) */
|
#endif /* defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) */
|
||||||
#ifdef CHECK_LIBC_VERSION
|
#ifdef CHECK_LIBC_VERSION
|
||||||
const char *version = gnu_get_libc_version();
|
const char *version = gnu_get_libc_version();
|
||||||
if (version == NULL)
|
if (version == NULL)
|
||||||
|
|
Loading…
Add table
Reference in a new issue