Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9a375600
Commit
9a375600
authored
Apr 27, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for deprecation warnings from sys/sysctl.h.
The warning was added in glibc 2.30. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
98eaef3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
configure
configure
+21
-1
configure.ac
configure.ac
+11
-1
No files found.
configure
View file @
9a375600
...
...
@@ -7559,7 +7559,7 @@ fi
for
ac_header
in
sys/mount.h sys/statfs.h sys/
sysctl.h sys/
user.h sys/vfs.h
for
ac_header
in
sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
do
:
as_ac_Header
=
`
$as_echo
"ac_cv_header_
$ac_header
"
|
$as_tr_sh
`
ac_fn_c_check_header_compile
"
$LINENO
"
"
$ac_header
"
"
$as_ac_Header
"
"#include <sys/types.h>
...
...
@@ -7577,6 +7577,26 @@ fi
done
saved_sysctl_h_CFLAGS
=
$CFLAGS
test
"x
${
GCC
}
"
!=
xyes
||
CFLAGS
=
"
$CFLAGS
-Werror"
for
ac_header
in
sys/sysctl.h
do
:
ac_fn_c_check_header_compile
"
$LINENO
"
"sys/sysctl.h"
"ac_cv_header_sys_sysctl_h"
"#include <sys/types.h>
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
"
if
test
"x
$ac_cv_header_sys_sysctl_h
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_SYS_SYSCTL_H 1
_ACEOF
fi
done
CFLAGS
=
$saved_sysctl_h_CFLAGS
for
ac_header
in
\
netinet/ip.h
\
net/if.h
\
...
...
configure.ac
View file @
9a375600
...
...
@@ -547,12 +547,22 @@ AC_HEADER_STAT()
dnl **** Checks for headers that depend on other ones ****
AC_CHECK_HEADERS([sys/mount.h sys/statfs.h sys/
sysctl.h sys/
user.h sys/vfs.h],,,
AC_CHECK_HEADERS([sys/mount.h sys/statfs.h sys/user.h sys/vfs.h],,,
[#include <sys/types.h>
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif])
dnl check for broken Linux sysctl.h that causes deprecation warnings
saved_sysctl_h_CFLAGS=$CFLAGS
test "x${GCC}" != xyes || CFLAGS="$CFLAGS -Werror"
AC_CHECK_HEADERS([sys/sysctl.h],,,
[#include <sys/types.h>
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif])
CFLAGS=$saved_sysctl_h_CFLAGS
AC_CHECK_HEADERS(\
netinet/ip.h \
net/if.h \
...
...
Write
Preview
Markdown
is supported
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