Compiling tarsnap on modern GNU/Linux systems leads to this warning (or error, depending on compiler flags):
In file included from ../lib-platform/util/memlimit.c:43:
/usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
| ^~~~~~~
That's not a problem, because that part of lib-platform/util/memlimit.c is:
Compiling tarsnap on modern GNU/Linux systems leads to this warning (or error, depending on compiler flags):
That's not a problem, because that part of
lib-platform/util/memlimit.c
is:In other words, when
<sys/sysctl.h>
is removed, we won't try to include it.I'm leaving this github issue open so that it's visible in case anybody else encounters this message and investigates.