diff options
Diffstat (limited to 'package/gpsd/patches/patch-sirfflash_c')
-rw-r--r-- | package/gpsd/patches/patch-sirfflash_c | 12 |
1 files changed, 12 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..3664b374f --- /dev/null +++ b/package/gpsd/patches/patch-sirfflash_c @@ -0,0 +1,12 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- gpsd-2.37.orig/sirfflash.c 2007-10-12 15:44:48.000000000 +0200 ++++ gpsd-2.37/sirfflash.c 2008-10-09 14:17:23.000000000 +0200 +@@ -166,7 +166,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); |