diff options
author | rillig <rillig@pkgsrc.org> | 2005-07-30 21:57:42 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-07-30 21:57:42 +0000 |
commit | 51de90d4eb49c493f6a264c03a3818e13e6bd7f4 (patch) | |
tree | 991d3c55bb9a57a90601c62fbd800b84108731a5 /net | |
parent | 7b5e833a3150402de015816639fbc495956030b7 (diff) | |
download | pkgsrc-51de90d4eb49c493f6a264c03a3818e13e6bd7f4.tar.gz |
Make pty.c always include <errno.h> in addition to <sys/errno.h>. Otherwise
errno may be undefined.
Diffstat (limited to 'net')
-rw-r--r-- | net/unison/distinfo | 4 | ||||
-rw-r--r-- | net/unison/patches/patch-ac | 25 |
2 files changed, 12 insertions, 17 deletions
diff --git a/net/unison/distinfo b/net/unison/distinfo index 6292a4c7216..4cb2c01fa3f 100644 --- a/net/unison/distinfo +++ b/net/unison/distinfo @@ -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 --git a/net/unison/patches/patch-ac b/net/unison/patches/patch-ac index 5c38bfc43ab..6e767caadaf 100644 --- a/net/unison/patches/patch-ac +++ b/net/unison/patches/patch-ac @@ -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() { |