summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Schlueter <jschlueter@navigationsolutions.com>2015-02-18 08:40:42 -0500
committerJon Schlueter <jschlueter@navigationsolutions.com>2015-02-18 08:40:42 -0500
commit7d4e48453d3241954a0691acfdc5b73a7a4466ae (patch)
tree1c37c75d2a724b6293cbed1f57c4b0c2fdecda34
parent2cde0f00a12b96217934b7a5761c7fcc0dfcfb58 (diff)
downloadgpsd-7d4e48453d3241954a0691acfdc5b73a7a4466ae.tar.gz
Fix for scons minimal=on broken build in gpsd.c missing ifdef guard
-rw-r--r--gpsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index 782df039..4fdebd66 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -2413,9 +2413,11 @@ int main(int argc, char *argv[])
*/
if (argc == optind && highwater > 0) {
int subcount = 0, devcount = 0;
+#ifdef SOCKET_EXPORT_ENABLE
for (sub = subscribers; sub < subscribers + MAX_CLIENTS; sub++)
if (sub->active != 0)
++subcount;
+#endif /* SOCKET_EXPORT_ENABLE */
for (device = devices; device < devices + MAX_DEVICES; device++)
if (allocated_device(device))
++devcount;