summaryrefslogtreecommitdiff
path: root/package/gpsd/patches/patch-contrib_motosend_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-17 20:10:15 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-17 20:10:15 +0100
commitf9011c1275b13f39e4ab4552173bfb91b2ffae56 (patch)
tree6a6cc8e0762a2da326e1657bda7308d6ffd3dc42 /package/gpsd/patches/patch-contrib_motosend_c
parentdc06fc81176cf7bd6024e6bfc0666abdd0207fbf (diff)
fix build on OpenBSD host
- add a wrapper script for autoconf and autoreconf to avoid ifdef gluecode for every OS/autoconf combination - need to add more autoconf version for NetBSD/MirBSD
Diffstat (limited to 'package/gpsd/patches/patch-contrib_motosend_c')
-rw-r--r--package/gpsd/patches/patch-contrib_motosend_c8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/gpsd/patches/patch-contrib_motosend_c b/package/gpsd/patches/patch-contrib_motosend_c
index c5f1b0162..e2db10a74 100644
--- a/package/gpsd/patches/patch-contrib_motosend_c
+++ b/package/gpsd/patches/patch-contrib_motosend_c
@@ -1,5 +1,5 @@
---- gpsd-2.39.orig/contrib/motosend.c 2008-06-26 21:08:36.000000000 +0200
-+++ gpsd-2.39/contrib/motosend.c 2009-06-13 09:12:46.000000000 +0200
+--- gpsd-2.39.orig/contrib/motosend.c Thu Jun 26 21:08:36 2008
++++ gpsd-2.39/contrib/motosend.c Tue Feb 16 21:33:16 2010
@@ -81,7 +81,7 @@ int main(int argc, char **argv) {
t = 0; n = 0;
while (1){
@@ -9,7 +9,7 @@
if ((l = read(fd, buf, BSIZ)) == -1)
if (!(EINTR == errno || EAGAIN == errno))
err(1, "read");
-@@ -119,7 +119,7 @@ static int moto_send(int fd, char *type,
+@@ -119,7 +119,7 @@ static int moto_send(int fd, char *type, char *body )
if ((buf = malloc(l+7)) == NULL)
return -1;
@@ -18,7 +18,7 @@
buf[0] = '@'; buf[1] = '@';
buf[2] = type[0]; buf[3] = type[1];
-@@ -171,7 +171,7 @@ int gpsd_hexpack(char *src, char *dst, i
+@@ -171,7 +171,7 @@ int gpsd_hexpack(char *src, char *dst, int len){
if ((l < 1) || (l > len))
return -1;