diff options
-rw-r--r-- | linux-user/ioctls.h | 2 | ||||
-rw-r--r-- | syscall-i386.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index b9aadb7a58..b4bfb3ab6e 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -37,6 +37,8 @@ IOCTL(TIOCNOTTY, 0, TYPE_NULL) IOCTL(TIOCGETD, IOC_R, MK_PTR(TYPE_INT)) IOCTL(TIOCSETD, IOC_W, MK_PTR(TYPE_INT)) + IOCTL(TIOCGPTN, IOC_R, MK_PTR(TYPE_INT)) + IOCTL(TIOCSPTLCK, IOC_W, MK_PTR(TYPE_INT)) IOCTL(FIOCLEX, 0, TYPE_NULL) IOCTL(FIONCLEX, 0, TYPE_NULL) IOCTL(FIOASYNC, IOC_W, MK_PTR(TYPE_INT)) diff --git a/syscall-i386.h b/syscall-i386.h index dae9be4e12..f77b55b0ac 100644 --- a/syscall-i386.h +++ b/syscall-i386.h @@ -572,8 +572,8 @@ struct target_pt_regs { #define TARGET_TIOCSBRK 0x5427 /* BSD compatibility */ #define TARGET_TIOCCBRK 0x5428 /* BSD compatibility */ #define TARGET_TIOCGSID 0x5429 /* Return the session ID of FD */ -#define TARGET_TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ -#define TARGET_TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ +#define TARGET_TIOCGPTN TARGET_IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ +#define TARGET_TIOCSPTLCK TARGET_IOW('T',0x31, int) /* Lock/unlock Pty */ #define TARGET_FIONCLEX 0x5450 /* these numbers need to be adjusted. */ #define TARGET_FIOCLEX 0x5451 |