]> granicus.if.org Git - sudo/commitdiff
It looks like AIX doesn't need to push STREAMS modules for ptys.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Mar 2010 16:06:27 +0000 (12:06 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Mar 2010 16:06:27 +0000 (12:06 -0400)
src/pty.c

index 180b887abc6509fff76c9a89ddc6a0f5a628bfea..ce4f609e25a6855fdaff90111aff15a39125d1f2 100644 (file)
--- a/src/pty.c
+++ b/src/pty.c
@@ -131,7 +131,7 @@ get_pty(int *master, int *slave, char *name, size_t namesz, uid_t uid)
        close(*master);
        return(0);
     }
-# ifdef I_PUSH
+# if defined(I_PUSH) && !defined(_AIX)
     ioctl(*slave, I_PUSH, "ptem");     /* pseudo tty emulation module */
     ioctl(*slave, I_PUSH, "ldterm");   /* line discipline module */
 # endif