add Added Files:
[hdw-repos/packages.git] / demian / netkit-telnet / prototypes.patch
1 # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
2
3 # ROCK Linux: rock-src/package/base/netkit-telnet/prototypes.patch
4 # ROCK Linux is Copyright (C) 1998 - 2002 Clifford Wolf
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version. A copy of the GNU General Public
10 # License can be found at Documentation/COPYING.
11
12 # Many people helped and are helping developing ROCK Linux. Please
13 # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
14 # file for details.
15
16 # --- ROCK-COPYRIGHT-NOTE-END ---
17
18 --- ./telnet/telnet.cc.orig     Fri Sep 24 08:29:33 1999
19 +++ ./telnet/telnet.cc  Fri Sep 24 08:38:06 1999
20 @@ -61,6 +61,9 @@
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)
23   */
24 +
25 +extern "C" { extern int tgetent(char *, const char *); }
26 +
27  #include <termcap.h>
28  
29  #ifdef USE_NCURSES
30 --- ./telnet/main.cc.orig       Thu May  2 11:37:25 2002
31 +++ ./telnet/main.cc    Thu May  2 11:39:09 2002
32 @@ -52,6 +52,8 @@
33  #include "defines.h"
34  #include "proto.h"
35  
36 +extern "C" { extern void exit(int); }
37 +
38  /*
39   * Initialize variables.
40   */
41 --- ./telnet/network.cc.orig    Thu May  2 11:39:50 2002
42 +++ ./telnet/network.cc Thu May  2 11:40:00 2002
43 @@ -49,6 +49,8 @@
44  #include "proto.h"
45  #include "netlink.h"
46  
47 +extern "C" { extern void exit(int); }
48 +
49  ringbuf netoring;
50  ringbuf netiring;
51  
52 --- ./telnet/terminal.cc.orig   Thu May  2 11:40:16 2002
53 +++ ./telnet/terminal.cc        Thu May  2 11:40:58 2002
54 @@ -53,6 +53,9 @@
55  #include "proto.h"
56  #include "terminal.h"
57  
58 +extern "C" { extern void exit(int); }
59 +extern "C" { extern void *memcpy(void *, const void *, size_t); }
60 +
61  static int TerminalWrite(const char *buf, int n);
62  static int TerminalRead(char *buf, int n);
63  
64 --- ./telnet/utilities.cc.orig  Thu May  2 11:41:28 2002
65 +++ ./telnet/utilities.cc       Thu May  2 11:43:26 2002
66 @@ -54,6 +54,11 @@
67  #include "proto.h"
68  #include "terminal.h"
69  
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 *); }
74 +
75  FILE *NetTrace = 0;            /* Not in bss, since needs to stay */ /* ? */
76  char NetTraceFile[256] = "(standard output)";
77  
78 --- ./telnet/netlink.cc.orig    Thu May  2 11:43:59 2002
79 +++ ./telnet/netlink.cc Thu May  2 11:44:04 2002
80 @@ -12,6 +12,8 @@
81  #include "proto.h"
82  #include "ring.h"
83  
84 +extern "C" { extern void *memcpy(void *, const void *, size_t); }
85 +
86  /* In Linux, this is an enum */
87  #if defined(__linux__) || defined(IPPROTO_IP)
88  #define HAS_IPPROTO_IP