diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-05-13 10:01:09 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-05-13 10:01:09 +0000 |
commit | ccc13869790d312f614128204c5546d5e9ad0b3f (patch) | |
tree | 4a834e153187f75cc2a336f742aea845f55557e6 /ext/pty | |
parent | c6ac6cb4542b845eb4c18a9e80e15f8deab4f54a (diff) |
990513
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty')
-rw-r--r-- | ext/pty/pty.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 0995220995..3748b55e47 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -22,7 +22,7 @@ #define DEVICELEN 16 #if !defined(HAVE_OPENPTY) -#ifdef hpux +#ifdef __hpux char *MasterDevice = "/dev/ptym/pty%s", *SlaveDevice = "/dev/pty/tty%s", *deviceNo[] = { @@ -108,9 +108,10 @@ struct pty_info { }; static void -set_signal_action(RETSIGTYPE (*action)()) +set_signal_action(action) + RETSIGTYPE (*action)(); { -#ifdef hpux +#ifdef __hpux struct sigvec sv; /* * signal SIGCHLD should be delivered on stop of the child @@ -194,7 +195,9 @@ chld_changed() static void getDevice _((int*, int*)); static void -establishShell(char *shellname, struct pty_info *info) +establishShell(shellname, info) + char *shellname; + struct pty_info *info; { static int i,j,master,slave,currentPid; static char procName[32]; |