Dash:
[t2.git] / package / shells / screen / hotfix-glibc23.patch
blobb93364eb193d08763d1e018599f1cce0bcbedd80
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../screen/glibc23.patch
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- ./extern.h.orig 2003-03-12 17:57:42.000000000 +0100
19 +++ ./extern.h 2003-03-12 17:58:09.000000000 +0100
20 @@ -344,9 +344,9 @@
21 #if defined(POSIX) || defined(hpux)
22 extern void (*xsignal __P((int, void (*)SIGPROTOARG))) __P(SIGPROTOARG);
23 #endif
24 -#ifndef HAVE_RENAME
25 -extern int rename __P((char *, char *));
26 -#endif
27 +// #ifndef HAVE_RENAME
28 +// extern int rename __P((char *, char *));
29 +// #endif
30 #if defined(HAVE_SETEUID) || defined(HAVE_SETREUID)
31 extern void xseteuid __P((int));
32 extern void xsetegid __P((int));
33 --- ./os.h.orig 2003-03-12 18:00:22.000000000 +0100
34 +++ ./os.h 2003-03-12 18:01:00.000000000 +0100
35 @@ -172,9 +172,9 @@
36 #ifndef HAVE_UTIMES
37 # define utimes utime
38 #endif
39 -#ifndef HAVE_VSNPRINTF
40 -# define vsnprintf xvsnprintf
41 -#endif
42 +// #ifndef HAVE_VSNPRINTF
43 +// # define vsnprintf xvsnprintf
44 +// #endif
46 #ifdef BUILTIN_TELNET
47 # include <netinet/in.h>
48 --- ./misc.c.orig 2003-03-12 17:58:44.000000000 +0100
49 +++ ./misc.c 2003-03-12 17:59:45.000000000 +0100
50 @@ -76,7 +76,7 @@
51 int err;
53 extern int sys_nerr;
54 - extern char *sys_errlist[];
55 +//extern char *sys_errlist[];
57 static char er[20];
58 if (err > 0 && err < sys_nerr)
59 @@ -423,6 +423,7 @@
60 #endif
63 +#if 0
64 #ifndef HAVE_RENAME
65 int
66 rename (old, new)
67 @@ -434,6 +435,7 @@
68 return unlink(old);
70 #endif
71 +#endif
74 int