pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/unison Make pty.c always include <errno.h> in addi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c9fc783c5ed
branches:  trunk
changeset: 497575:1c9fc783c5ed
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jul 30 21:57:42 2005 +0000

description:
Make pty.c always include <errno.h> in addition to <sys/errno.h>. Otherwise
errno may be undefined.

diffstat:

 net/unison/distinfo         |   4 ++--
 net/unison/patches/patch-ac |  25 ++++++++++---------------
 2 files changed, 12 insertions(+), 17 deletions(-)

diffs (54 lines):

diff -r 708a0833c256 -r 1c9fc783c5ed net/unison/distinfo
--- a/net/unison/distinfo       Sat Jul 30 21:56:51 2005 +0000
+++ b/net/unison/distinfo       Sat Jul 30 21:57:42 2005 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.9 2005/04/24 12:48:43 adrianp Exp $
+$NetBSD: distinfo,v 1.10 2005/07/30 21:57:42 rillig Exp $
 
 SHA1 (unison-2.10.2/unison-2.10.2.tar.gz) = 1d378292d944981fb41504c8cea92cd3e1913c49
 RMD160 (unison-2.10.2/unison-2.10.2.tar.gz) = 593d71c39b49f30e82df58f62891d6d5540c2af7
 Size (unison-2.10.2/unison-2.10.2.tar.gz) = 458032 bytes
 SHA1 (patch-aa) = b6974657b864a75262562053185a7fd9b8df6b73
 SHA1 (patch-ab) = 0fe6bbb5f39f535c4b6a956978e75822528d7bdf
-SHA1 (patch-ac) = 4c080aaf879921f0120633ee37fa031c64e6a243
+SHA1 (patch-ac) = f5e703b5b509b8976efbd7f435c3db1de714427e
diff -r 708a0833c256 -r 1c9fc783c5ed net/unison/patches/patch-ac
--- a/net/unison/patches/patch-ac       Sat Jul 30 21:56:51 2005 +0000
+++ b/net/unison/patches/patch-ac       Sat Jul 30 21:57:42 2005 +0000
@@ -1,26 +1,21 @@
-$NetBSD: patch-ac,v 1.2 2005/04/24 12:48:43 adrianp Exp $
+$NetBSD: patch-ac,v 1.3 2005/07/30 21:57:42 rillig Exp $
 
---- pty.c.orig 2004-09-06 20:15:47.000000000 +0100
-+++ pty.c
-@@ -18,7 +18,11 @@ CAMLprim value dumpFd(value fdVal) {
+--- pty.c.orig Mon Sep  6 21:15:47 2004
++++ pty.c      Sat Jul 30 23:55:49 2005
+@@ -18,6 +18,7 @@ CAMLprim value dumpFd(value fdVal) {
  }
  
  #include <caml/fail.h>     // failwith
-+#ifdef __NetBSD__
 +#include <errno.h>         // errno
-+#else
  #include <sys/errno.h>     // errno
-+#endif
  #include <string.h>        // strerror
  #include <caml/alloc.h>    // alloc_tuple
- #include <caml/memory.h>   // Store_field
-@@ -32,6 +36,9 @@ CAMLprim value dumpFd(value fdVal) {
- #ifdef __APPLE__
+@@ -29,7 +30,7 @@ CAMLprim value dumpFd(value fdVal) {
+ #ifdef __linux__
+ #include <pty.h>           // openpty
+ #endif
+-#ifdef __APPLE__
++#if defined(__APPLE__) || defined(__NetBSD__)
  #include <util.h>          // openpty
  #endif
-+#ifdef __NetBSD__
-+#include <util.h>          // openpty
-+#endif
  
- /* c_openpty: unit -> (int * Unix.file_descr) */
- CAMLprim value c_openpty() {



Home | Main Index | Thread Index | Old Index