From 9d666b87079423031b238d48a2a89fd31558c245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 11 Jan 2008 11:22:47 +0000 Subject: [PATCH] Fix build under BeOS. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23386 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/TermApp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/apps/terminal/TermApp.cpp b/src/apps/terminal/TermApp.cpp index 0e962f465d..302ac123a6 100644 --- a/src/apps/terminal/TermApp.cpp +++ b/src/apps/terminal/TermApp.cpp @@ -79,9 +79,15 @@ TermApp::ReadyToRun() // Install a SIGCHLD signal handler, so that we will be notified, when // a shell exits. struct sigaction action; +#ifdef __HAIKU__ action.sa_handler = (sighandler_t)_SigChildHandler; +#else + action.sa_handler = (__signal_func_ptr)_SigChildHandler; +#endif sigemptyset(&action.sa_mask); +#ifdef SA_NODEFER action.sa_flags = SA_NODEFER; +#endif action.sa_userdata = this; if (sigaction(SIGCHLD, &action, NULL) < 0) { fprintf(stderr, "sigaction() failed: %s\n", strerror(errno));