diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-29 11:01:41 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-29 11:01:41 -0400 |
commit | 173c43dbc016bc44bc62a852526a87b78817d636 (patch) | |
tree | afddc6678b5ab6f75b8f44cefeaaa163ad9972f1 /libgps_core.c | |
parent | 7e753e02514e46ae59f4e532c854b764b876ce0a (diff) | |
download | gpsd-173c43dbc016bc44bc62a852526a87b78817d636.tar.gz |
Squeeze more code out of the minimal build.
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libgps_core.c b/libgps_core.c index e4866eea..0224a075 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -47,8 +47,15 @@ void libgps_trace(int errlevel, const char *fmt, ...) } #endif /* LIBGPS_DEBUG */ -int gps_open(/*@null@*/const char *host, /*@null@*/const char *port, - /*@out@*/ struct gps_data_t *gpsdata) +#ifdef SOCKET_EXPORT_ENABLE +#define CONDITIONALLY_UNUSED +#else +#define CONDITIONALLY_UNUSED UNUSED +#endif /* SOCKET_EXPORT_ENABLE */ + +int gps_open(/*@null@*/const char *host, + /*@null@*/const char *port CONDITIONALLY_UNUSED, + /*@out@*/ struct gps_data_t *gpsdata) { int status = -1; |