summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-openpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/bsd-openpty.c')
-rw-r--r--openbsd-compat/bsd-openpty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c
index b6b5ab49..1ab41f42 100644
--- a/openbsd-compat/bsd-openpty.c
+++ b/openbsd-compat/bsd-openpty.c
@@ -65,6 +65,8 @@
#include <string.h>
#include <unistd.h>
+#include "misc.h"
+
#ifndef O_NOCTTY
#define O_NOCTTY 0
#endif
@@ -97,7 +99,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp,
*/
int ptm;
char *pts;
- mysig_t old_signal;
+ sshsig_t old_signal;
if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1)
return (-1);