diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-23 21:54:48 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-23 21:54:48 +0000 |
commit | e704d6aee2b9e8864589d1960ac15726bb0cd35c (patch) | |
tree | be4a1d78a3f9f58ee244dd407d8d1be1032f5506 /compat/forkpty-sunos.c | |
parent | 14d7cf3878360dd47ec3e22cdf4e3d731797c9de (diff) | |
download | rtmux-e704d6aee2b9e8864589d1960ac15726bb0cd35c.tar.gz rtmux-e704d6aee2b9e8864589d1960ac15726bb0cd35c.tar.bz2 rtmux-e704d6aee2b9e8864589d1960ac15726bb0cd35c.zip |
IRIX fixes, sort of partly work.
Diffstat (limited to 'compat/forkpty-sunos.c')
-rw-r--r-- | compat/forkpty-sunos.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compat/forkpty-sunos.c b/compat/forkpty-sunos.c index bc4fe8a3..a4b1dbdf 100644 --- a/compat/forkpty-sunos.c +++ b/compat/forkpty-sunos.c @@ -1,7 +1,7 @@ -/* $Id: forkpty-sunos.c,v 1.5 2008-06-18 22:21:51 nicm Exp $ */ +/* $Id: forkpty-sunos.c,v 1.6 2008-06-23 21:54:48 nicm Exp $ */ /* - * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> + * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,6 +17,7 @@ */ #include <sys/types.h> +#include <sys/ioctl.h> #include <fcntl.h> #include <stdlib.h> @@ -52,8 +53,10 @@ forkpty(int *master, close(*master); setsid(); +#ifdef TIOCSCTTY if (ioctl(slave, TIOCSCTTY, NULL) == -1) fatal("ioctl failed"); +#endif if (ioctl(slave, I_PUSH, "ptem") == -1) fatal("ioctl failed"); |