freebsd-ports/vietnamese/vnelvis/files/patch-07
David E. O'Brien b93ba8e95c VNElvis is a clone of vi/ex (the standard UNIX editor) that allows the
displaying and editing of documents in the Vietnamese 8-bit VISCII (VIetnamese
Standard Code for Information Interchange) data format using the 7-bit VIQR
(VIetnamese Quoted Readable) input method.
1996-12-06 12:37:38 +00:00

52 lines
828 B
Plaintext

--- 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
}