hoytech / vmtouch

Portable file system cache diagnostics and control
https://hoytech.com/vmtouch/
BSD 3-Clause "New" or "Revised" License
1.79k stars 210 forks source link

Fix to work with glibc 2.20 #17

Closed garrison closed 9 years ago

garrison commented 9 years ago

_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.

hoytech commented 9 years ago

Thanks! I think I'll take -Werror out of the Makefile too.

garrison commented 9 years ago

Thanks! This allowed me to package vmtouch for Nix[OS].

hoytech commented 9 years ago

Neat, thanks for that and for letting me know.