Closed Wuzzy2 closed 9 years ago
Looks like _DEFAULT_SOURCE
was added in glibc 2.19 and _BSD_SOURCE
deprecated in version 2.20. Both these versions are quite new so I think we'll need to test for the existence of _DEFAULT_SOURCE
before using it.
Correction: I think just adding a #define _DEFAULT_SOURCE
in addition should work.
When I try to compile d2060413c9a0b313e76bbe3c6336c998a745ddfe under GNU/Linux, I get a compiler warning which is treated as error:
(“Fehler:” is German for “Error:”. “Alle Warnungen werden als Fehler behandelt” is German for “All warnings are treated as errors”.)
I could fix this by changing line 49 of
utils.c
from#define _BSD_SOURCE
to#define _DEFAULT_SOURCE
.