summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorWilliam Pursell <bill.pursell@gmail.com>2008-12-21 19:19:43 +0000
committerMicah Cowan <micah@cowan.name>2009-01-24 00:16:31 -0800
commit7019645b866139a85acba887bfbf4b20f8be02e3 (patch)
treebc000b02ee391bd2aab4493280347af5abd223a8 /src/window.c
parentbd51468c8f954f8c7a2c429b3147c196f8f6f3f1 (diff)
downloadscreen-7019645b866139a85acba887bfbf4b20f8be02e3.tar.gz
Fix union wait vs. int issue
On OS X, screen fails to compile because WindowDied is unconditionally declared to take an int, but is called with an argument of type union wait. This wraps the declaration and two associated calls. Signed-off-by: William Pursell <bill.pursell@gmail.com>
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 86a5f68..5b15878 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1855,13 +1855,21 @@ char *data;
return;
#endif
debug2("Window %d: read error (errno %d) - killing window\n", p->w_number, errno);
+#ifdef BSDWAIT
+ WindowDied(p, (union wait)0, 0);
+#else
WindowDied(p, 0, 0);
+#endif
return;
}
if (len == 0)
{
debug1("Window %d: EOF - killing window\n", p->w_number);
+#ifdef BSDWAIT
+ WindowDied(p, (union wait)0, 0);
+#else
WindowDied(p, 0, 0);
+#endif
return;
}
debug1(" -> %d bytes\n", len);