diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Setup | 1 | ||||
-rw-r--r-- | ext/pty/pty.c | 11 | ||||
-rw-r--r-- | ext/socket/addrinfo.h | 2 |
3 files changed, 9 insertions, 5 deletions
@@ -1,5 +1,6 @@ #option nodynamic +interbase #GD #curses #dbm 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]; diff --git a/ext/socket/addrinfo.h b/ext/socket/addrinfo.h index 5d2c7dea45..d4e2091d69 100644 --- a/ext/socket/addrinfo.h +++ b/ext/socket/addrinfo.h @@ -69,7 +69,7 @@ # ifdef HAVE_PROTOTYPES # define __P(args) args # else -# define __P(args) +# define __P(args) () # endif #endif |