summaryrefslogtreecommitdiff
path: root/cgps.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-12-15 05:50:30 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-12-15 05:50:30 +0000
commit8237a45ab5ddee96dd9dabc0caa5783920a694b7 (patch)
tree64f1720d272be416c9c4715247b14234860afcf3 /cgps.c
parent344f11dca17028ae98a96732cf96b143add6946e (diff)
downloadgpsd-8237a45ab5ddee96dd9dabc0caa5783920a694b7.tar.gz
a better way to use ncurses, if you've got it.
Diffstat (limited to 'cgps.c')
-rw-r--r--cgps.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cgps.c b/cgps.c
index 67d06182..df02f5c0 100644
--- a/cgps.c
+++ b/cgps.c
@@ -96,11 +96,15 @@
#include <math.h>
#include <errno.h>
#include <assert.h>
-
-#include <ncurses.h>
#include <signal.h>
#include "gpsd_config.h"
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#else
+#include <curses.h>
+#endif /* HAVE_NCURSES_H */
+
#include "gps.h"
static struct gps_data_t *gpsdata;