]> skyeroc.xyz Git - dgamelaunch/commitdiff
more BSD fixes
authorJoshua Kwan <joshk@triplehelix.org>
Fri, 2 Jan 2004 20:36:55 +0000 (20:36 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Fri, 2 Jan 2004 20:36:55 +0000 (20:36 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@39 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

ttyrec.c

index 4fd69d090ce43ae6879436580ebf294a95974132..0186e48d6d7904efbaf16f55ca31cb9764bd8d42 100644 (file)
--- a/ttyrec.c
+++ b/ttyrec.c
@@ -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>
 
 #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);
 }