diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-01-23 21:06:45 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-01-23 21:06:45 +1100 |
commit | 945bf52c3c815d95b1e842ebf6c910c3524bd5bb (patch) | |
tree | 53bd6d05fb51cca4e2deb92574f363605e39ed51 /openbsd-compat | |
parent | 84226b447d45fe4542613de68c2ca59a890d7c01 (diff) |
Fix a couple of mysig_t leftovers.
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/bsd-openpty.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c index b6b5ab49b..1ab41f42b 100644 --- a/openbsd-compat/bsd-openpty.c +++ b/openbsd-compat/bsd-openpty.c | |||
@@ -65,6 +65,8 @@ | |||
65 | #include <string.h> | 65 | #include <string.h> |
66 | #include <unistd.h> | 66 | #include <unistd.h> |
67 | 67 | ||
68 | #include "misc.h" | ||
69 | |||
68 | #ifndef O_NOCTTY | 70 | #ifndef O_NOCTTY |
69 | #define O_NOCTTY 0 | 71 | #define O_NOCTTY 0 |
70 | #endif | 72 | #endif |
@@ -97,7 +99,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp, | |||
97 | */ | 99 | */ |
98 | int ptm; | 100 | int ptm; |
99 | char *pts; | 101 | char *pts; |
100 | mysig_t old_signal; | 102 | sshsig_t old_signal; |
101 | 103 | ||
102 | if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) | 104 | if ((ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY)) == -1) |
103 | return (-1); | 105 | return (-1); |