From: Alexander Couzens Date: Sun, 11 Nov 2018 01:19:32 +0000 (+0100) Subject: nmea.c: set _BSD_SOURCE to have timegm() & stime() on musl X-Git-Url: http://git.openwrt.org/?p=project%2Fugps.git;a=commitdiff_plain;h=07528d43f9bccf22dfb16ee03083bb46dd53dfcf;ds=sidebyside nmea.c: set _BSD_SOURCE to have timegm() & stime() on musl musl doesn't know _DEFAULT_SOURCE which is used by glibc >= 2.19 to enable timegm() and stime(). Signed-off-by: Alexander Couzens --- diff --git a/nmea.c b/nmea.c index 7793097..42be71e 100644 --- a/nmea.c +++ b/nmea.c @@ -18,6 +18,7 @@ #define _DEFAULT_SOURCE #define _XOPEN_SOURCE +#define _BSD_SOURCE #include #include