_BSD_SOURCE is deprecated in glibc 2.20, causing a warning to be given. Since vmtouch is compiled with -Werror by default, this also causes the compilation to fail.
According to the feature_test_macros man page, the warning can be silenced while still allowing compatibility with older versions of glibc by defining both_BSD_SOURCE and _DEFAULT_SOURCE.
_BSD_SOURCE
is deprecated in glibc 2.20, causing a warning to be given. Since vmtouch is compiled with-Werror
by default, this also causes the compilation to fail.According to the feature_test_macros man page, the warning can be silenced while still allowing compatibility with older versions of glibc by defining both
_BSD_SOURCE
and_DEFAULT_SOURCE
.