openbsd-ports/geo/tangogps/patches/patch-src_gps_functions_c
jasper 91310a3e5b - update tangogps to 0.99.4
- switch to new DEPENDS
- use an axe to remove the bluez dependency; upstream refuses to reply to my
mails about actually fixing it instead of forcing it upon everyone.

ok MAINTAINER and landry@
2010-09-01 07:12:17 +00:00

35 lines
780 B
Plaintext

$OpenBSD: patch-src_gps_functions_c,v 1.1 2010/09/01 07:12:17 jasper Exp $
Disable Bluez-stack bluetooth.
--- src/gps_functions.c.orig Mon Aug 30 15:30:39 2010
+++ src/gps_functions.c Mon Aug 30 15:33:46 2010
@@ -28,7 +28,9 @@
#include "wp.h"
#include "tracks.h"
#include "livetracks.h"
-#include "hrm_functions.h"
+#if !defined(__OpenBSD__)
+# include "hrm_functions.h"
+#endif
#define BUFSIZE 512
char * distance2scale(float distance, float *factor);
@@ -363,6 +365,7 @@ cb_gps_timer()
set_label_nogps();
}
+#if !defined(__OpenBSD__)
if(hrm_on && (!hrmdata || global_reconnect_hrm))
get_hrm_data();
else if(hrm_on && hrmdata) {
@@ -370,7 +373,7 @@ cb_gps_timer()
if(global_infopane_visible)
set_hrm_labels();
}
-
+#endif
return TRUE;
}