Browse Source

fix musl compile

Waldemar Brodkorb 11 years ago
parent
commit
99d02ffdb7
2 changed files with 14 additions and 1 deletions
  1. 1 1
      package/gpsd/Makefile
  2. 13 0
      package/gpsd/patches/patch-gpsmon_c

+ 1 - 1
package/gpsd/Makefile

@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		gpsd
 PKG_VERSION:=		3.10
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_MD5SUM:=		fc5b03aae38b9b5b6880b31924d0ace3
 PKG_DESCR:=		An interface daemon for GPS receivers
 PKG_SECTION:=		misc

+ 13 - 0
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);