--- /dev/null
+ o Minor bugfix (FreeBSD, compilation):
+ - Fix compilation issue on FreeBSD by properly importing sys/param.h. Fixes
+ bug 40825; bugfix on 0.4.8.1-alpha.
#define STR_IMPL(x) #x
#define STR(x) STR_IMPL(x)
+#if defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE)
+#include <sys/param.h>
+#endif /* defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) */
+
/** Return the name of the compile time libc. Returns NULL if we
* cannot identify the libc. */
const char *
const char *
tor_libc_get_version_str(void)
{
-#if defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE)
-#include <sys/param.h>
#ifdef __DragonFly_version
return STR(__DragonFly_version);
#endif
#ifdef OpenBSD
return STR(OpenBSD);
#endif
-#endif /* defined(__BSD_VISIBLE) || defined(__NETBSD_SOURCE) */
#ifdef CHECK_LIBC_VERSION
const char *version = gnu_get_libc_version();
if (version == NULL)