summaryrefslogtreecommitdiff
path: root/package/gpsd/patches/patch-sirfflash_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-01-21 20:04:13 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-21 20:04:13 +0100
commit357771e31bd0effe155ad2b3ad6326ab086c3b1c (patch)
tree09bd7c708f0a0ca6b2f79388a355558a3e7247ce /package/gpsd/patches/patch-sirfflash_c
parentc33f1fc73a473ffd39ec5cf7cd7b417546b3a8c8 (diff)
parent88f8c823598fb3dda3d52e2624df7019096ba64a (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/gpsd/patches/patch-sirfflash_c')
-rw-r--r--package/gpsd/patches/patch-sirfflash_c11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/gpsd/patches/patch-sirfflash_c b/package/gpsd/patches/patch-sirfflash_c
new file mode 100644
index 000000000..979793a56
--- /dev/null
+++ b/package/gpsd/patches/patch-sirfflash_c
@@ -0,0 +1,11 @@
+--- gpsd-2.39.orig/sirfflash.c 2009-01-28 21:53:47.000000000 +0100
++++ gpsd-2.39/sirfflash.c 2010-01-16 09:27:49.000000000 +0100
+@@ -193,7 +193,7 @@ sirfSetProto(int pfd, struct termios *te
+
+ sirf[7] = sirf[6] = (unsigned char)proto;
+ /*@i@*/i = htonl(speed); /* borrow "i" to put speed into proper byte order */
+- /*@i@*/bcopy(&i, sirf+8, 4);
++ /*@i@*/memcpy(sirf+8, &i, 4);
+
+ /* send at whatever baud we're currently using */
+ (void)sirf_write(pfd, sirf);