mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
Allow psim to be built on go32
This commit is contained in:
@ -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>
|
Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||||
|
|
||||||
* configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
|
* configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
|
||||||
|
@ -54,6 +54,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(O_NDELAY) || !defined(F_GETFL) || !defined(F_SETFL)
|
||||||
|
#undef WITH_STDIO
|
||||||
|
#define WITH_STDIO DO_USE_STDIO
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Device:
|
/* Device:
|
||||||
|
|
||||||
@ -121,6 +125,10 @@ scan_hw_pal(hw_pal_device *hw_pal)
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} 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 */
|
/* check for input */
|
||||||
int flags;
|
int flags;
|
||||||
int status;
|
int status;
|
||||||
@ -150,6 +158,7 @@ scan_hw_pal(hw_pal_device *hw_pal)
|
|||||||
perror("hw_pal");
|
perror("hw_pal");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -271,7 +280,6 @@ hw_pal_instance_read_callback(device_instance *instance,
|
|||||||
unsigned_word len)
|
unsigned_word len)
|
||||||
{
|
{
|
||||||
char *buf_char = (char *)buf;
|
char *buf_char = (char *)buf;
|
||||||
hw_pal_device *hw_pal = device_instance_data(instance);
|
|
||||||
if (WITH_STDIO == DO_USE_STDIO) {
|
if (WITH_STDIO == DO_USE_STDIO) {
|
||||||
char *line = fgets (buf_char, len, stdin);
|
char *line = fgets (buf_char, len, stdin);
|
||||||
return ((!line) ? -1 : strlen (buf_char));
|
return ((!line) ? -1 : strlen (buf_char));
|
||||||
|
Reference in New Issue
Block a user