diff options
author | joerg <joerg> | 2006-01-11 17:43:34 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-11 17:43:34 +0000 |
commit | 4c63a5cf2d9bf65215816b328a0b36cf16c2cec6 (patch) | |
tree | 8453f133bd32018286446790c8f237c8cb44ca52 /lang/STk/patches | |
parent | 161cd28a8f7a45857a0320febae3e4babca9cbe7 (diff) | |
download | pkgsrc-4c63a5cf2d9bf65215816b328a0b36cf16c2cec6.tar.gz |
Fix errno. Fix stdio abuse for DragonFly.
Diffstat (limited to 'lang/STk/patches')
-rw-r--r-- | lang/STk/patches/patch-aj | 19 | ||||
-rw-r--r-- | lang/STk/patches/patch-ak | 18 | ||||
-rw-r--r-- | lang/STk/patches/patch-al | 14 | ||||
-rw-r--r-- | lang/STk/patches/patch-am | 21 |
4 files changed, 72 insertions, 0 deletions
diff --git a/lang/STk/patches/patch-aj b/lang/STk/patches/patch-aj new file mode 100644 index 00000000000..3f1a193aacb --- /dev/null +++ b/lang/STk/patches/patch-aj @@ -0,0 +1,19 @@ +$NetBSD: patch-aj,v 1.1 2006/01/11 17:43:34 joerg Exp $ + +--- Tcl/tclUnixPort.h.orig 2006-01-11 17:08:11.000000000 +0000 ++++ Tcl/tclUnixPort.h +@@ -176,14 +176,6 @@ + #define TCL_PLATFORM_TRANSLATION TCL_TRANSLATE_LF + + /* +- * Not all systems declare the errno variable in errno.h. so this +- * file does it explicitly. The list of system error messages also +- * isn't generally declared in a header file anywhere. +- */ +- +-extern int errno; +- +-/* + * The type of the status returned by wait varies from UNIX system + * to UNIX system. The macro below defines it: + */ diff --git a/lang/STk/patches/patch-ak b/lang/STk/patches/patch-ak new file mode 100644 index 00000000000..a3f4cb242e9 --- /dev/null +++ b/lang/STk/patches/patch-ak @@ -0,0 +1,18 @@ +$NetBSD: patch-ak,v 1.1 2006/01/11 17:43:34 joerg Exp $ + +--- Tk/unix/tkUnixPort.h.orig 2006-01-11 17:12:28.000000000 +0000 ++++ Tk/unix/tkUnixPort.h +@@ -120,13 +120,6 @@ + #define MASK_SIZE howmany(FD_SETSIZE, NFDBITS) + + /* +- * Not all systems declare the errno variable in errno.h. so this +- * file does it explicitly. +- */ +- +-extern int errno; +- +-/* + * Define "NBBY" (number of bits per byte) if it's not already defined. + */ + diff --git a/lang/STk/patches/patch-al b/lang/STk/patches/patch-al new file mode 100644 index 00000000000..a4936381275 --- /dev/null +++ b/lang/STk/patches/patch-al @@ -0,0 +1,14 @@ +$NetBSD: patch-al,v 1.1 2006/01/11 17:43:34 joerg Exp $ + +--- Src/io.c.orig 2006-01-11 17:16:11.000000000 +0000 ++++ Src/io.c +@@ -67,6 +67,9 @@ + # define READ_DATA_PENDING(fp) (max(0,(fp)->_egptr - (fp)->_gptr)) + # endif + #endif ++#if !defined(READ_DATA_PENDING) && defined(__DragonFly__) ++# define READ_DATA_PENDING(fp) (max(0,((struct __FILE_public *)(fp))->_r)) ++#endif + #if (!defined (READ_DATA_PENDING)) && defined __SLBF + # define READ_DATA_PENDING(fp) (max(0,fp->_r)) + #endif diff --git a/lang/STk/patches/patch-am b/lang/STk/patches/patch-am new file mode 100644 index 00000000000..f3572846a17 --- /dev/null +++ b/lang/STk/patches/patch-am @@ -0,0 +1,21 @@ +$NetBSD: patch-am,v 1.1 2006/01/11 17:43:34 joerg Exp $ + +--- Extensions/posix.c.orig 2006-01-11 17:19:54.000000000 +0000 ++++ Extensions/posix.c +@@ -23,7 +23,7 @@ + * <shiro@sqush.squareusa.com> + */ + +- ++#include <errno.h> + #include <stk.h> + #include <sys/types.h> + #include <sys/utsname.h> +@@ -35,7 +35,6 @@ + * Error management + * + ******************************************************************************/ +-extern int errno; + + static SCM get_errno(char *s) + { |