summaryrefslogtreecommitdiff
path: root/package/gpsd/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-16 09:25:07 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-16 09:25:07 +0100
commit99d02ffdb7d1125ca73a6adfaf3ccac01c04ad41 (patch)
treec18552ce2f06a7deea756e94a829bded60991094 /package/gpsd/patches
parent763690735d55dd834da3cc35802aabc79d4b04ae (diff)
fix musl compile
Diffstat (limited to 'package/gpsd/patches')
-rw-r--r--package/gpsd/patches/patch-gpsmon_c13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/gpsd/patches/patch-gpsmon_c b/package/gpsd/patches/patch-gpsmon_c
new file mode 100644
index 000000000..ac52866d0
--- /dev/null
+++ b/package/gpsd/patches/patch-gpsmon_c
@@ -0,0 +1,13 @@
+--- gpsd-3.10.orig/gpsmon.c 2013-11-21 09:57:44.000000000 +0100
++++ gpsd-3.10/gpsmon.c 2014-03-16 09:08:34.000000000 +0100
+@@ -505,6 +505,10 @@ static /*@null@*/ char *curses_get_comma
+ static char line[80];
+ int c;
+
++#ifndef __GLIBC__
++#define CTRL(x) (x&037)
++#endif
++
+ c = wgetch(cmdwin);
+ if (c == CTRL('L')) {
+ (void)clearok(stdscr, true);