packages/net/gpsd/patches/100-reduce-size.patch
florian edf2148598 Upgrade gpsd and reduce memory footprint
Signed-off-by: Russell Senior <seniorr@aracnet.com>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@9774 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-16 13:12:11 +00:00

28 lines
750 B
Diff

diff -ru gpsd-2.35-orig/gpsd.c gpsd-2.35/gpsd.c
--- gpsd-2.35-orig/gpsd.c 2007-10-14 20:05:38.000000000 -0700
+++ gpsd-2.35/gpsd.c 2007-10-15 00:08:36.000000000 -0700
@@ -42,6 +42,7 @@
#include <locale.h>
#endif
+#undef DBUS_ENABLE
#ifdef DBUS_ENABLE
#include <gpsd_dbus.h>
#endif
@@ -290,6 +291,7 @@
* This array fills from the bottom, so as an extreme case you could
* reduce LIMITED_MAX_DEVICES to 1.
*/
+#define LIMITED_MAX_DEVICES 1
#ifdef LIMITED_MAX_DEVICES
#define MAXDEVICES LIMITED_MAX_DEVICES
#else
@@ -302,6 +304,7 @@
* file descriptors, so don't set this too low. 16 should probably be
* the minimum.
*/
+#define LIMITED_MAX_CLIENTS 16
#ifdef LIMITED_MAX_CLIENTS
#define MAXSUBSCRIBERS LIMITED_MAX_CLIENTS
#else