summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-01-05 12:50:12 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-01-05 12:50:12 +0000
commit975e5f892365210f26b642747d936adeb6b282b0 (patch)
treef79cea586fb660c1df61bf9f01e20ed2a4fa178c
parent584e939cfcb8dbc771c2f775d32a9b277d2fd693 (diff)
downloadgpsd-975e5f892365210f26b642747d936adeb6b282b0.tar.gz
Rename --units option.
-rw-r--r--xgpsspeed.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xgpsspeed.c b/xgpsspeed.c
index 4b4b49b7..d5826bcf 100644
--- a/xgpsspeed.c
+++ b/xgpsspeed.c
@@ -4,7 +4,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
-#include <getopt.h>
#include <X11/Intrinsic.h>
#include <X11/Shell.h>
#include <X11/Xaw/Label.h>
@@ -13,6 +12,9 @@
#include <Tachometer.h>
#include "xgpsspeed.icon"
+#ifdef HAVE_GETOPT
+#include <getopt.h>
+#endif
#include "config.h"
#include "gps.h"
@@ -20,7 +22,7 @@ static XrmOptionDescRec options[] = {
{"-rv", "*reverseVideo", XrmoptionNoArg, "TRUE"},
{"-nc", "*needleColor", XrmoptionSepArg, NULL},
{"-needlecolor","*needleColor", XrmoptionSepArg, NULL},
-{"--units", "*units", XrmoptionSepArg, NULL},
+{"--speedunits","*units", XrmoptionSepArg, NULL},
};
String fallback_resources[] = {NULL};