]> err.no Git - mapper/commitdiff
Fix build under hildon
authorKaj-Michael Lang <milang@tal.org>
Mon, 4 Feb 2008 08:05:00 +0000 (10:05 +0200)
committerKaj-Michael Lang <milang@tal.org>
Mon, 4 Feb 2008 08:05:00 +0000 (10:05 +0200)
src/Makefile.am
src/gps.c

index c1292302354c824f25027b421c83a928d9de8940..a88b1a29c22698ac1a27e4f0ed150462c1089e4d 100644 (file)
@@ -88,12 +88,15 @@ if HAVE_BLUEZ_DBUS_BT
 libmappergps_la_SOURCES+=gps-bluetooth-bluez.c gps-bluetooth-bluez-marshal.c
 endif
 
+libmappergps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines) 
+libmappergps_la_LIBADD = $(GLIBGTK_LIBS)
+libmappergps_la_LDFLAGS = -lm -no-undefined
+
 if HAVE_HILDON_DBUS_BT
 libmappergps_la_SOURCES+=gps-bluetooth-maemo.c gps-bluetooth-maemo-marshal.c 
+libmappergps_la_CFLAGS+= $(HILDON_CFLAGS) $(HILDONFM_CFLAGS) $(HILDON_HELP_CFLAGS) $(LIBGPSBT_CFLAGS)
+libmappergps_la_LIBADD+= $(HILDON_LIBS) $(HILDONFM_LIBS) $(HILDON_HELP_LIBS) $(LIBGPSBT_LIBS)
 endif
-libmappergps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(LIBGPSBT_CFLAGS) $(defines) 
-libmappergps_la_LIBADD = $(GLIBGTK_LIBS) $(LIBGPSBT_LIBS)
-libmappergps_la_LDFLAGS = -lm -no-undefined
 
 libgtkgps_la_SOURCES = gtkgps.c gtkcompass.c
 libgtkgps_la_CFLAGS = $(GLIBGTK_CFLAGS) $(defines)
index 629d529b041fe310f196a19365ce6b3b3773b40e..5d2ce27f9545b7f5650250225131c8953b12d310 100644 (file)
--- a/src/gps.c
+++ b/src/gps.c
@@ -193,12 +193,12 @@ if (gps->io.conn==RCVR_DOWN && gps->io.address) {
                } else {
                        /* Unknown error. */
                        g_printerr("Error: %s\n", error->message);
-                       gps_disconnect(_gps);
-                       gps_connect_later(_gps);        /* Try again later. */
+                       gps_disconnect(gps);
+                       gps_connect_later(gps); /* Try again later. */
                        return;
                }
        }
-       gps_connect_fd(fdpath);
+       gps_connect_file(gps, fdpath);
 }
 /* else { Looks like the middle of a disconnect.  Do nothing. } */
 }