patch-gpsmon_c 367 B

12345678910111213
  1. --- gpsd-3.10.orig/gpsmon.c 2013-11-21 09:57:44.000000000 +0100
  2. +++ gpsd-3.10/gpsmon.c 2014-03-16 09:08:34.000000000 +0100
  3. @@ -505,6 +505,10 @@ static /*@null@*/ char *curses_get_comma
  4. static char line[80];
  5. int c;
  6. +#ifndef __GLIBC__
  7. +#define CTRL(x) (x&037)
  8. +#endif
  9. +
  10. c = wgetch(cmdwin);
  11. if (c == CTRL('L')) {
  12. (void)clearok(stdscr, true);