aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/ppc/main.c b/sim/ppc/main.c
index 2d4d7e4..3b82c88 100644
--- a/sim/ppc/main.c
+++ b/sim/ppc/main.c
@@ -40,7 +40,7 @@
#include <string.h>
#include <errno.h>
-#if !defined(O_NDELAY) || !defined(F_GETFL) || !defined(F_SETFL)
+#if !defined(O_NONBLOCK) || !defined(F_GETFL) || !defined(F_SETFL)
#undef WITH_STDIO
#define WITH_STDIO DO_USE_STDIO
#endif
@@ -150,7 +150,7 @@ sim_io_read_stdin(char *buf,
return sim_io_eof;
break;
case DONT_USE_STDIO:
-#if defined(O_NDELAY) && defined(F_GETFL) && defined(F_SETFL)
+#if defined(O_NONBLOCK) && defined(F_GETFL) && defined(F_SETFL)
{
/* check for input */
int flags;
@@ -164,7 +164,7 @@ sim_io_read_stdin(char *buf,
return sim_io_eof;
}
/* temp, disable blocking IO */
- status = fcntl(0, F_SETFL, flags | O_NDELAY);
+ status = fcntl(0, F_SETFL, flags | O_NONBLOCK);
if (status == -1) {
perror("sim_io_read_stdin");
return sim_io_eof;