Tooltalk fixes for OpenBSD. This consists mainly of #ifdefs, casts and some small type nits.

This commit is contained in:
Pascal Stumpf
2012-08-10 14:07:06 +02:00
committed by Jon Trulson
parent 3d5a492038
commit 3b77d7c065
39 changed files with 129 additions and 62 deletions

View File

@@ -284,13 +284,13 @@ startup_ttsession(_Tt_string &start_ttcmd)
istat = signal(SIGINT, SIG_IGN);
qstat = signal(SIGQUIT, SIG_IGN);
cstat = signal(SIGCLD, SIG_DFL);
cstat = signal(SIGCHLD, SIG_DFL);
w = waitpid(pid, &status, 0);
(void) signal(SIGINT, istat);
(void) signal(SIGQUIT, qstat);
(void) signal(SIGCLD, cstat);
(void) signal(SIGCHLD, cstat);
return((w == -1)? w: status);

View File

@@ -47,7 +47,7 @@
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/time.h>
#if defined(__STDC__) && !defined(linux)
#if defined(__STDC__) && !defined(linux) && !defined(CSRG_BASED)
extern "C" { extern int ioctl (int, int, ...) ; };
#endif
#include "util/tt_global_env.h"

View File

@@ -118,7 +118,7 @@ base_constructor()
_Tt_message::
_Tt_message()
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
: _pattern_id(), _object(), _file(), _op(),
_otype(), _sender_ptype(), _handler_ptype(),
_api_id(), _status_string()