Update gpsd to 2.37 (#3622)
[openwrt/svn-archive/archive.git] / net / gpsd / patches / 100-reduce-size.patch
1 --- a/gpsd.c
2 +++ b/gpsd.c
3 @@ -42,6 +42,7 @@
4 #include <locale.h>
5 #endif
6
7 +#undef DBUS_ENABLE
8 #ifdef DBUS_ENABLE
9 #include <gpsd_dbus.h>
10 #endif
11 @@ -297,6 +298,7 @@
12 * This array fills from the bottom, so as an extreme case you could
13 * reduce LIMITED_MAX_DEVICES to 1.
14 */
15 +#define LIMITED_MAX_DEVICES 1
16 #ifdef LIMITED_MAX_DEVICES
17 #define MAXDEVICES LIMITED_MAX_DEVICES
18 #else
19 @@ -304,6 +306,7 @@
20 #define MAXDEVICES 4
21 #endif
22
23 +#define LIMITED_MAX_CLIENTS 16
24 #ifdef LIMITED_MAX_CLIENTS
25 #define MAXSUBSCRIBERS LIMITED_MAX_CLIENTS
26 #else