aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/ose/sys.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-10-30 17:56:37 +0100
committerLukas Larsson <[email protected]>2014-02-24 15:16:00 +0100
commita6788ea337a2319a2d1a42ee4618553a1c7765bf (patch)
tree76bd19e2bf8076a1b19c2e7e0d4215b9469e747e /erts/emulator/sys/ose/sys.c
parentd932131754c2bfb2e0539b6419e3d09533fe84e8 (diff)
downloadotp-a6788ea337a2319a2d1a42ee4618553a1c7765bf.tar.gz
otp-a6788ea337a2319a2d1a42ee4618553a1c7765bf.tar.bz2
otp-a6788ea337a2319a2d1a42ee4618553a1c7765bf.zip
ose: Fix various build environment issues
Diffstat (limited to 'erts/emulator/sys/ose/sys.c')
-rw-r--r--erts/emulator/sys/ose/sys.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/emulator/sys/ose/sys.c b/erts/emulator/sys/ose/sys.c
index a8eb0b93b4..a8a99ceca6 100644
--- a/erts/emulator/sys/ose/sys.c
+++ b/erts/emulator/sys/ose/sys.c
@@ -852,6 +852,11 @@ OS_PROCESS(fd_reader_process) {
}
#endif
+ if (fd == 0) {
+ FILE *ffd = stdin;
+ (void)stdin;
+ }
+
sigsel[1] = ERTS_SIGNAL_FD_DRV_ASYNC;
read_buf = (byte *) erts_alloc(ERTS_ALC_T_SYS_READ_BUF,
@@ -909,8 +914,10 @@ OS_PROCESS(fd_writer_process) {
/* Why do I need these?!? */
if (fd == 1) {
FILE* ffd = stdout;
+ (void)stdout;
} else if (fd == 2) {
FILE* ffd = stderr;
+ (void)stderr;
}
while (1) {