summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
Diffstat (limited to 'cross')
-rw-r--r--cross/icdprog/distinfo4
-rw-r--r--cross/icdprog/patches/patch-ab23
2 files changed, 19 insertions, 8 deletions
diff --git a/cross/icdprog/distinfo b/cross/icdprog/distinfo
index 2ffe9866ff6..40b76c97c68 100644
--- a/cross/icdprog/distinfo
+++ b/cross/icdprog/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 10:16:53 agc Exp $
+$NetBSD: distinfo,v 1.4 2005/12/23 18:21:40 joerg Exp $
SHA1 (icdprog-0.3.tar.gz) = 4e8a8aac8845c531971b7a371d6dc5a9d460dbea
RMD160 (icdprog-0.3.tar.gz) = 5643ffd9687602ace01007f0514aeb5b372ca48e
Size (icdprog-0.3.tar.gz) = 8714 bytes
SHA1 (patch-aa) = 05e8cb5e69822ad854bd48bfcf0b24ea5b84ad22
-SHA1 (patch-ab) = d781da4b1f6c1cd76353df69a2d3fe28178cd783
+SHA1 (patch-ab) = 84f7cf3b8b5ae264b7380e3383596472244ac919
diff --git a/cross/icdprog/patches/patch-ab b/cross/icdprog/patches/patch-ab
index aa69b14ee50..6fe6a1418a2 100644
--- a/cross/icdprog/patches/patch-ab
+++ b/cross/icdprog/patches/patch-ab
@@ -1,8 +1,19 @@
-$NetBSD: patch-ab,v 1.1 2003/06/25 15:12:17 tsarna Exp $
+$NetBSD: patch-ab,v 1.2 2005/12/23 18:21:40 joerg Exp $
---- icd.c.orig Sat Jun 21 17:05:22 2003
-+++ icd.c Sat Jun 21 17:30:45 2003
-@@ -278,7 +278,7 @@
+--- icd.c.orig 2001-03-29 10:29:01.000000000 +0000
++++ icd.c
+@@ -12,6 +12,10 @@
+
+ #define BAUDRATE B57600
+
++#if defined(__DragonFly__) && !defined(O_SYNC)
++#define O_SYNC O_FSYNC
++#endif
++
+ int icd_fd; /* file descriptor for serial port */
+ int controller_type=-1;
+
+@@ -278,7 +282,7 @@ int icd_init(char *port)
{
struct termios oldtio, newtio;
@@ -11,7 +22,7 @@ $NetBSD: patch-ab,v 1.1 2003/06/25 15:12:17 tsarna Exp $
perror("Error opening device:");
return -1;
}
-@@ -286,10 +286,11 @@
+@@ -286,10 +290,11 @@ int icd_init(char *port)
tcgetattr(icd_fd, &oldtio);
memset(&newtio,0, sizeof(newtio));
@@ -24,7 +35,7 @@ $NetBSD: patch-ab,v 1.1 2003/06/25 15:12:17 tsarna Exp $
newtio.c_cc[VTIME] = 20;
newtio.c_cc[VMIN] = 0;
-@@ -297,6 +298,8 @@
+@@ -297,6 +302,8 @@ int icd_init(char *port)
tcflush(icd_fd, TCIFLUSH);
tcsetattr(icd_fd, TCSANOW, &newtio);