libsensors: Prevent warning with glibc >= 2.20
Quoted 29 lines · Jean Delvare
Since glibc 2.20, the usage of
_BSD_SOURCEis deprecated. Fix it like described here:Inspired from a similar patch by Wolfram Sang for i2c-tools.
Signed-off-by Jean Delvare <[email protected]>--- lib/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)lib/init.c +2
-1@@ -20,7 +20,8 @@*/ /* Needed for scandir() and alphasort() */ -#define _BSD_SOURCE +#define _BSD_SOURCE 1/* for glibc < 2.19 */ +#define _DEFAULT_SOURCE 1/* for glibc >= 2.19 */ #include <sys/types.h> #include <sys/stat.h> Signature · 3 lines
-- Jean Delvare SUSE L3 Support
Thanks, Jean! Applied.
Ondřej Lysoněk