Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sergi
Tor
Commits
484710f2
Commit
484710f2
authored
5 years ago
by
David Goulet
Browse files
Options
Downloads
Patches
Plain Diff
build: The <sys/sysctl.h> is now deprecated on Linux
Closes #31673
parent
5a1c3e44
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/ticket31673
+3
-0
3 additions, 0 deletions
changes/ticket31673
src/common/compat.c
+5
-3
5 additions, 3 deletions
src/common/compat.c
with
8 additions
and
3 deletions
changes/ticket31673
0 → 100644
+
3
−
0
View file @
484710f2
o New system requirements (build system):
- Do not include the deprecated <sys/sysctl.h> on Linux or Windows system.
Closes 31673;
This diff is collapsed.
Click to expand it.
src/common/compat.c
+
5
−
3
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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment