[Packages] net/gpsd:
[openwrt/svn-archive/archive.git] / net / gpsd / patches / 100-reduce-size.patch
1 Index: gpsd-2.36/gpsd.c
2 ===================================================================
3 --- gpsd-2.36.orig/gpsd.c 2008-02-13 11:01:21.000000000 +0100
4 +++ gpsd-2.36/gpsd.c 2008-02-13 11:01:22.000000000 +0100
5 @@ -42,6 +42,7 @@
6 #include <locale.h>
7 #endif
8
9 +#undef DBUS_ENABLE
10 #ifdef DBUS_ENABLE
11 #include <gpsd_dbus.h>
12 #endif
13 @@ -297,6 +298,7 @@
14 * This array fills from the bottom, so as an extreme case you could
15 * reduce LIMITED_MAX_DEVICES to 1.
16 */
17 +#define LIMITED_MAX_DEVICES 1
18 #ifdef LIMITED_MAX_DEVICES
19 #define MAXDEVICES LIMITED_MAX_DEVICES
20 #else
21 @@ -304,6 +306,7 @@
22 #define MAXDEVICES 4
23 #endif
24
25 +#define LIMITED_MAX_CLIENTS 16
26 #ifdef LIMITED_MAX_CLIENTS
27 #define MAXSUBSCRIBERS LIMITED_MAX_CLIENTS
28 #else