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
The Tor Project
Core
Tor
Commits
3b32f250
Commit
3b32f250
authored
Sep 11, 2019
by
George Kadianakis
Browse files
Merge branch 'tor-github/pr/1307'
parents
e7565855
409df19b
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/ticket31673
0 → 100644
View file @
3b32f250
o New system requirements (build system):
- Do not include the deprecated <sys/sysctl.h> on Linux or Windows system.
Closes 31673;
src/lib/meminfo/meminfo.c
View file @
3b32f250
...
...
@@ -18,9 +18,6 @@
#include "lib/log/log.h"
#include "lib/malloc/malloc.h"
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
...
...
@@ -36,6 +33,10 @@
#endif
#include <string.h>
#if defined(HAVE_SYS_SYSCTL_H) && !defined(_WIN32) && !defined(__linux__)
#include <sys/sysctl.h>
#endif
DISABLE_GCC_WARNING
(
aggregate
-
return
)
/** Call the platform malloc info function, and dump the results to the log at
* level <b>severity</b>. If no such function exists, do nothing. */
...
...
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