diff options
author | joerg <joerg@pkgsrc.org> | 2005-12-18 23:15:43 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-12-18 23:15:43 +0000 |
commit | 1ec06b074e0ba2fb930cd833b6f43fd08b4c608e (patch) | |
tree | dd9c8d7bb7ab151504842bbb353cbe99ff15047b /comms/kermit/patches/patch-ae | |
parent | bd8eba8997bc46bfb160930cf074801fc6048447 (diff) | |
download | pkgsrc-1ec06b074e0ba2fb930cd833b6f43fd08b4c608e.tar.gz |
Add read-ahead hack for DragonFly, manually casting to the "public"
version of FILE. Kids, don't try that at home.
Fix errno.
Diffstat (limited to 'comms/kermit/patches/patch-ae')
-rw-r--r-- | comms/kermit/patches/patch-ae | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/comms/kermit/patches/patch-ae b/comms/kermit/patches/patch-ae new file mode 100644 index 00000000000..dad5b49f79d --- /dev/null +++ b/comms/kermit/patches/patch-ae @@ -0,0 +1,18 @@ +$NetBSD: patch-ae,v 1.5 2005/12/18 23:15:43 joerg Exp $ + +--- ckucmd.c.orig 2005-12-18 22:57:18.000000000 +0000 ++++ ckucmd.c +@@ -7128,7 +7128,12 @@ cmdconchk() { + if (x == 0) x = conchk(); + if (x < 0) x = 0; + #else /* USE_FILE_CNT */ +-#ifdef USE_FILE_R /* FreeBSD, OpenBSD, etc */ ++#if defined(__DragonFly__) && defined(feof_unlocked) ++ debug(F101,"cmdconchk stdin->_r","",((struct __FILE_public *)stdin)->_r); ++ x = ((struct __FILE_public *)stdin)->_r; ++ if (x == 0) x = conchk(); ++ if (x < 0) x = 0; ++#elif defined(USE_FILE_R) /* FreeBSD, OpenBSD, etc */ + debug(F101,"cmdconchk stdin->_r","",stdin->_r); + x = stdin->_r; + if (x == 0) x = conchk(); |