projects
/
project
/
ugps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b88037b
)
nmea.c: set _BSD_SOURCE to have timegm() & stime() on musl
author
Alexander Couzens
<lynxis@fe80.eu>
Sun, 11 Nov 2018 01:19:32 +0000
(
02:19
+0100)
committer
Alexander Couzens
<lynxis@fe80.eu>
Sun, 11 Nov 2018 01:24:34 +0000
(
02:24
+0100)
musl doesn't know _DEFAULT_SOURCE which is used by glibc >= 2.19
to enable timegm() and stime().
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
nmea.c
patch
|
blob
|
history
diff --git
a/nmea.c
b/nmea.c
index 7793097f105f04530406916b2dcb028b7ccb699c..42be71eec1d0829d8d660cf554acb38e12589d7b 100644
(file)
--- a/
nmea.c
+++ b/
nmea.c
@@
-18,6
+18,7
@@
#define _DEFAULT_SOURCE
#define _XOPEN_SOURCE
+#define _BSD_SOURCE
#include <time.h>
#include <sys/types.h>