more BSD fixes

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@39 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-01-02 20:36:55 +00:00
parent 6f76353da3
commit 23540a34cd
1 changed files with 10 additions and 2 deletions

View File

@ -53,7 +53,9 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stropts.h>
#ifndef NOSTREAMS
# include <stropts.h>
#endif
#include <stdlib.h>
#include <fcntl.h>
@ -61,6 +63,10 @@
#include "ttyrec.h"
#include "io.h"
#ifndef XCASE
# define XCASE 0
#endif
#define HAVE_inet_aton
#define HAVE_scsi_h
#define HAVE_kd_h
@ -363,6 +369,7 @@ getslave ()
perror("open(fd, O_RDWR)");
fail();
} */
#ifndef NOSTREAMS
if (isastream (slave))
{
if (ioctl (slave, I_PUSH, "ptem") < 0)
@ -382,6 +389,7 @@ getslave ()
fail ();
}
#endif
(void) ioctl (0, TIOCGWINSZ, (char *) &win);
}
#endif /* !NOSTREAMS */
(void) ioctl (0, TIOCGWINSZ, (char *) &win);
}