Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nick Mathewson
Tor
Commits
484710f2
Commit
484710f2
authored
Sep 09, 2019
by
David Goulet
🔆
Browse files
build: The <sys/sysctl.h> is now deprecated on Linux
Closes #31673
parent
5a1c3e44
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/ticket31673
0 → 100644
View file @
484710f2
o New system requirements (build system):
- Do not include the deprecated <sys/sysctl.h> on Linux or Windows system.
Closes 31673;
src/common/compat.c
View file @
484710f2
...
...
@@ -27,9 +27,6 @@
#ifdef HAVE_SYS_TYPES_H
#include
<sys/types.h>
#endif
#ifdef HAVE_SYS_SYSCTL_H
#include
<sys/sysctl.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include
<sys/stat.h>
#endif
...
...
@@ -70,6 +67,11 @@
#include
<sys/capability.h>
#endif
/* Now deprecated in Linux GLIBC */
#if defined(HAVE_SYS_SYSCTL_H) && !defined(_WIN32) && !defined(__linux__)
#include
<sys/sysctl.h>
#endif
#ifdef _WIN32
#include
<conio.h>
#include
<wchar.h>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment