eabi fix for uclibc++
[openwrt/svn-archive/archive.git] / net / gpsd / patches / 100-reduce-size.patch
1 diff -ru gpsd-2.35-orig/gpsd.c gpsd-2.35/gpsd.c
2 --- gpsd-2.35-orig/gpsd.c 2007-10-14 20:05:38.000000000 -0700
3 +++ gpsd-2.35/gpsd.c 2007-10-15 00:08:36.000000000 -0700
4 @@ -42,6 +42,7 @@
5 #include <locale.h>
6 #endif
7
8 +#undef DBUS_ENABLE
9 #ifdef DBUS_ENABLE
10 #include <gpsd_dbus.h>
11 #endif
12 @@ -290,6 +291,7 @@
13 * This array fills from the bottom, so as an extreme case you could
14 * reduce LIMITED_MAX_DEVICES to 1.
15 */
16 +#define LIMITED_MAX_DEVICES 1
17 #ifdef LIMITED_MAX_DEVICES
18 #define MAXDEVICES LIMITED_MAX_DEVICES
19 #else
20 @@ -302,6 +304,7 @@
21 * file descriptors, so don't set this too low. 16 should probably be
22 * the minimum.
23 */
24 +#define LIMITED_MAX_CLIENTS 16
25 #ifdef LIMITED_MAX_CLIENTS
26 #define MAXSUBSCRIBERS LIMITED_MAX_CLIENTS
27 #else