From: Joshua Kwan Date: Fri, 2 Jan 2004 20:36:55 +0000 (+0000) Subject: more BSD fixes X-Git-Tag: v1.6.1-roc-dev~659 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=23540a34cd40de890107cc93e87196dae062694d;p=dgamelaunch more BSD fixes git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@39 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- diff --git a/ttyrec.c b/ttyrec.c index 4fd69d0..0186e48 100644 --- a/ttyrec.c +++ b/ttyrec.c @@ -53,7 +53,9 @@ #include #include #include -#include +#ifndef NOSTREAMS +# include +#endif #include #include @@ -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); }