more BSD fixes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@39 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
6f76353da3
commit
23540a34cd
12
ttyrec.c
12
ttyrec.c
|
@ -53,7 +53,9 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stropts.h>
|
#ifndef NOSTREAMS
|
||||||
|
# include <stropts.h>
|
||||||
|
#endif
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
@ -61,6 +63,10 @@
|
||||||
#include "ttyrec.h"
|
#include "ttyrec.h"
|
||||||
#include "io.h"
|
#include "io.h"
|
||||||
|
|
||||||
|
#ifndef XCASE
|
||||||
|
# define XCASE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define HAVE_inet_aton
|
#define HAVE_inet_aton
|
||||||
#define HAVE_scsi_h
|
#define HAVE_scsi_h
|
||||||
#define HAVE_kd_h
|
#define HAVE_kd_h
|
||||||
|
@ -363,6 +369,7 @@ getslave ()
|
||||||
perror("open(fd, O_RDWR)");
|
perror("open(fd, O_RDWR)");
|
||||||
fail();
|
fail();
|
||||||
} */
|
} */
|
||||||
|
#ifndef NOSTREAMS
|
||||||
if (isastream (slave))
|
if (isastream (slave))
|
||||||
{
|
{
|
||||||
if (ioctl (slave, I_PUSH, "ptem") < 0)
|
if (ioctl (slave, I_PUSH, "ptem") < 0)
|
||||||
|
@ -382,6 +389,7 @@ getslave ()
|
||||||
fail ();
|
fail ();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
(void) ioctl (0, TIOCGWINSZ, (char *) &win);
|
|
||||||
}
|
}
|
||||||
|
#endif /* !NOSTREAMS */
|
||||||
|
(void) ioctl (0, TIOCGWINSZ, (char *) &win);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue