aboutsummaryrefslogtreecommitdiff
path: root/comms/wy60
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2006-12-14 21:06:37 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2006-12-14 21:06:37 +0000
commit3a22d6f92c0e4d219f7a2d7d3fa9d50d3bf0c96e (patch)
tree3f0e8af5d6459fbf406ff3c4241d902154cbb351 /comms/wy60
parent081f6fe0f152a5f8218e560c6b93379d5224ea4e (diff)
downloadports-3a22d6f92c0e4d219f7a2d7d3fa9d50d3bf0c96e.tar.gz
ports-3a22d6f92c0e4d219f7a2d7d3fa9d50d3bf0c96e.zip
Fix building with gcc4.
Reported by: kris (pointyhat)
Notes
Notes: svn path=/head/; revision=179783
Diffstat (limited to 'comms/wy60')
-rw-r--r--comms/wy60/files/patch-wy60.c98
1 files changed, 98 insertions, 0 deletions
diff --git a/comms/wy60/files/patch-wy60.c b/comms/wy60/files/patch-wy60.c
new file mode 100644
index 000000000000..dba1aa142dea
--- /dev/null
+++ b/comms/wy60/files/patch-wy60.c
@@ -0,0 +1,98 @@
+
+$FreeBSD$
+
+--- wy60.c.orig
++++ wy60.c
+@@ -59,6 +59,17 @@
+ } ScreenBuffer;
+
+
++static void flushConsole(void);
++static void gotoXYforce(int x, int y);
++static void putCapability(const char *capability);
++static int putConsole(int ch);
++static void putGraphics(char ch);
++static void showCursor(int flag);
++static void updateAttributes(void);
++static void failure(int exitCode, const char *message, ...);
++static void processSignal(int signalNumber, int pid, int pty);
++
++
+ static int euid, egid, uid, gid, oldStylePty, streamsIO, jobControl;
+ static char ptyName[40];
+ static struct termios defaultTermios;
+@@ -260,7 +271,6 @@
+ logFd = -1;
+ }
+ if (logFd >= 0) {
+- static void flushConsole(void);
+ int header[4];
+
+ gettimeofday(&timeValue, 0);
+@@ -295,7 +305,6 @@
+ }
+
+ if (logFd >= 0) {
+- static void flushConsole(void);
+ char buffer[80];
+
+ if (isatty(logFd))
+@@ -369,8 +378,6 @@
+
+ static void logDecodeFlush(void) {
+ if (_decodeFd >= 0) {
+- static void flushConsole(void);
+-
+ if (isatty(_decodeFd))
+ strcat(_decodeBuffer, "\x1B[39m");
+ strcat(_decodeBuffer, "\r\n");
+@@ -2203,14 +2210,6 @@
+
+
+ static void displayCurrentScreenBuffer(void) {
+- static void flushConsole(void);
+- static void gotoXYforce(int x, int y);
+- static void putCapability(const char *capability);
+- static int putConsole(int ch);
+- static void putGraphics(char ch);
+- static void showCursor(int flag);
+- static void updateAttributes(void);
+-
+ int x, y, lastAttributes = -1;
+ int oldX = currentBuffer->cursorX;
+ int oldY = currentBuffer->cursorY;
+@@ -2346,8 +2345,6 @@
+
+
+ static void putCapability(const char *capability) {
+- static void failure(int exitCode, const char *message, ...);
+-
+ if (!capability || !strcmp(capability, "@"))
+ failure(127, "Terminal has insufficient capabilities");
+ logHostString(capability);
+@@ -2756,8 +2753,6 @@
+
+
+ static void putGraphics(char ch) {
+- static void updateAttributes(void);
+-
+ if (ch == '\x02')
+ graphicsMode = 1;
+ else if (ch == '\x03')
+@@ -2839,7 +2834,6 @@
+
+
+ static void executeExternalProgram(const char *argv[]) {
+- static void failure(int exitCode, const char *message, ...);
+ int pid, status;
+
+ if ((pid = fork()) < 0) {
+@@ -2886,8 +2880,6 @@
+
+
+ static void requestNewGeometry(int pty, int width, int height) {
+- static void processSignal(int signalNumber, int pid, int pty);
+-
+ logDecode("setScreenSize(%d,%d)", width, height);
+
+ if (screenWidth != width || screenHeight != height) {