Allow psim to be built on go32
authorMichael Meissner <gnu@the-meissners.org>
Fri, 24 May 1996 14:15:17 +0000 (14:15 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Fri, 24 May 1996 14:15:17 +0000 (14:15 +0000)
sim/ppc/ChangeLog
sim/ppc/hw_pal.c

index 3cfc837255a432b29298b97166fc7404430f3797..6b37e4cac50e3650332dfffa1a2018891da932be 100644 (file)
@@ -1,3 +1,15 @@
+Fri May 24 10:08:10 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
+
+       * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
+       are not defined.
+       (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
+       F_SETFL not defined.
+
+Tue May 21 17:24:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
+
+       * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
+       host is netbsd.
+
 Thu May 16 10:56:45 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
 
        * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
index dd5a097127681c6d5ca91bc0e9e0ec354611e388..429f45763847126a4956f1f7a6a21dace0fb5b3a 100644 (file)
 #include <stdlib.h>
 #endif
 
+#if !defined(O_NDELAY) || !defined(F_GETFL) || !defined(F_SETFL)
+#undef WITH_STDIO
+#define WITH_STDIO DO_USE_STDIO
+#endif
 
 /* Device:
    
@@ -121,6 +125,10 @@ scan_hw_pal(hw_pal_device *hw_pal)
     }
 
   } else {
+#if !defined(O_NDELAY) || !defined(F_GETFL) || !defined(F_SETFL)
+    error ("O_NDELAY, F_GETFL, or F_SETFL not defined");
+
+#else
     /* check for input */
     int flags;
     int status;
@@ -150,6 +158,7 @@ scan_hw_pal(hw_pal_device *hw_pal)
       perror("hw_pal");
       return;
     }
+#endif
   }
 }
 
@@ -271,7 +280,6 @@ hw_pal_instance_read_callback(device_instance *instance,
                              unsigned_word len)
 {
   char *buf_char = (char *)buf;
-  hw_pal_device *hw_pal = device_instance_data(instance);
   if (WITH_STDIO == DO_USE_STDIO) {
     char *line = fgets (buf_char, len, stdin);
     return ((!line) ? -1 : strlen (buf_char));
This page took 0.026053 seconds and 4 git commands to generate.