1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../netkit-telnet/prototypes.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
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
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- ./telnet/telnet.cc.orig Fri Sep 24 08:29:33 1999
19 +++ ./telnet/telnet.cc Fri Sep 24 08:38:06 1999
21 * Due to lossage in some linux distributions/kernel releases/libc versions
22 * this must come *after* termios.h (which is included in externs.h)
25 +extern "C" { extern int tgetent(char *, const char *); }
30 --- ./telnet/main.cc.orig Thu May 2 11:37:25 2002
31 +++ ./telnet/main.cc Thu May 2 11:39:09 2002
36 +extern "C" { extern void exit(int); }
39 * Initialize variables.
41 --- ./telnet/network.cc.orig Thu May 2 11:39:50 2002
42 +++ ./telnet/network.cc Thu May 2 11:40:00 2002
47 +extern "C" { extern void exit(int); }
52 --- ./telnet/terminal.cc.orig Thu May 2 11:40:16 2002
53 +++ ./telnet/terminal.cc Thu May 2 11:40:58 2002
58 +extern "C" { extern void exit(int); }
59 +extern "C" { extern void *memcpy(void *, const void *, size_t); }
61 static int TerminalWrite(const char *buf, int n);
62 static int TerminalRead(char *buf, int n);
64 --- ./telnet/utilities.cc.orig Thu May 2 11:41:28 2002
65 +++ ./telnet/utilities.cc Thu May 2 11:43:26 2002
70 +extern "C" { extern void exit(int); }
71 +extern "C" { extern size_t strlen(const char *); }
72 +extern "C" { extern char *strcmp(const char *, const char *); }
73 +extern "C" { extern char *strcpy(char *, const char *); }
75 FILE *NetTrace = 0; /* Not in bss, since needs to stay */ /* ? */
76 char NetTraceFile[256] = "(standard output)";
78 --- ./telnet/netlink.cc.orig Thu May 2 11:43:59 2002
79 +++ ./telnet/netlink.cc Thu May 2 11:44:04 2002
84 +extern "C" { extern void *memcpy(void *, const void *, size_t); }
86 /* In Linux, this is an enum */
87 #if defined(__linux__) || defined(IPPROTO_IP)
88 #define HAS_IPPROTO_IP