Commit b9454c0
committed
Fix compilation if sys/sysctl.h is not present
Glibc 2.32 removes sys/sysctl.h as it is no longer needed. This commit fixes
the compilation with newer versions of Glibc by checking for sys/sysctl.h with
has_include, which in turn is only used if it is supported. This should mean
that this commit does not prevent any configuration that worked before from working.1 parent 20dde1a commit b9454c0
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
0 commit comments