blob: 4ded4ac18158aeb58c7e02bc1bd2c020458c2766 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
--- curses.c.orig Thu May 14 22:55:48 1992
+++ curses.c Wed Dec 4 23:55:33 1996
@@ -40,6 +40,13 @@
#include <signal.h>
+#if TURBOC || (BSD >= 199306)
+void
+#else
+int
+#endif
+getsize();
+
extern char *getenv();
static void starttcap();
@@ -338,7 +345,7 @@
}
exwrote = FALSE;
-#if TURBOC
+#if TURBOC || (BSD >= 199306)
signal(SIGINT, (void(*)()) trapint);
#else
signal(SIGINT, trapint);
@@ -482,7 +489,12 @@
* This function is called once during initialization, and thereafter it is
* called whenever the SIGWINCH signal is sent to this process.
*/
-int getsize(signo)
+#if TURBOC || (BSD >= 199306)
+void
+#else
+int
+#endif
+getsize(signo)
int signo;
{
int lines;
@@ -535,7 +547,11 @@
*o_lines = LINES;
}
+#if TURBOC || (BSD >= 199306)
+ return;
+#else
return 0;
+#endif
}
|