summaryrefslogtreecommitdiff
path: root/gpsflash.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-08-19 13:48:31 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-08-19 13:48:31 +0000
commit2e1e324968410389ba16195c1faa2a6c0ffec170 (patch)
treebb50d3caaaba61929ff66212ba0c6d049b19f38a /gpsflash.c
parent80818229e170fd6458e5d5c8c22400a8aaaf3d0c (diff)
downloadgpsd-2e1e324968410389ba16195c1faa2a6c0ffec170.tar.gz
Enable gpsflash to compile without SiRF enabled...
...not that it will do anything useful.
Diffstat (limited to 'gpsflash.c')
-rw-r--r--gpsflash.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gpsflash.c b/gpsflash.c
index 20278904..1584df0c 100644
--- a/gpsflash.c
+++ b/gpsflash.c
@@ -287,10 +287,17 @@ expect(int pfd, const char *str, size_t len, time_t timeout)
}
+#if defined(SIRFII_ENABLE) && defined(BINARY_ENABLE)
/* add new types by adding pointers to their driver blocks to this list */
/*@ -nullassign @*/
static struct flashloader_t *types[] = {&sirf_type, NULL};
/*@ +nullassign @*/
+#else
+/* add new types by adding pointers to their driver blocks to this list */
+/*@ -nullassign @*/
+static struct flashloader_t *types[] = {NULL, NULL};
+/*@ +nullassign @*/
+#endif
int
main(int argc, char **argv){