summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 13:11:48 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-17 13:11:48 -0800
commitba41ed406510d2c88ba6bc97be16dc24c9621426 (patch)
treeaeed50a77ed153cc5d8d274ae998e11904ece447
parentba6892385cc20505bd20e807d37597e699571948 (diff)
unifdef _AIXHEADmaster
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xconsole.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/xconsole.c b/xconsole.c
index 7d3e7ec..76486a0 100644
--- a/xconsole.c
+++ b/xconsole.c
@@ -157,10 +157,6 @@ static XrmOptionDescRec options[] = {
# endif
#endif
-#if defined(_AIX)
-# define USE_PTS
-#endif
-
#if !defined (USE_FILE) || defined (linux)
# include <sys/ioctl.h>
# if defined (SVR4) || defined (USE_PTS)
@@ -784,11 +780,7 @@ get_pty(int *pty, int *tty)
static char ttydev[64], ptydev[64];
#if defined (SVR4) || defined (USE_PTS)
-#if defined (_AIX)
- if ((*pty = open ("/dev/ptc", O_RDWR)) < 0)
-#else
if ((*pty = open ("/dev/ptmx", O_RDWR)) < 0)
-#endif
return 1;
grantpt(*pty);
unlockpt(*pty);