Skip to content

Commit 923ca9e

Browse files
committed
FIX: adding missing posix headers needed for the CALL enhancement
1 parent d8486da commit 923ca9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/os/posix/host-lib.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,14 @@
5252

5353
#include <stdlib.h>
5454
#include <stdio.h>
55+
#include <poll.h>
56+
#include <fcntl.h> /* Obtain O_* constant definitions */
5557
#include <unistd.h>
5658
#include <sys/types.h>
5759
#include <sys/wait.h>
5860
#include <time.h>
5961
#include <string.h>
62+
#include <errno.h>
6063

6164
#ifndef timeval // for older systems
6265
#include <sys/time.h>
@@ -1024,12 +1027,11 @@ static void *Task_Ready;
10241027
close(stdin_pipe[W]);
10251028
}
10261029
stdin_pipe_err:
1027-
printf("ret: %d\n", ret);
1030+
if(ret != 0) printf("ret: %d\n", ret);
10281031
return ret;
10291032
}
10301033

10311034

1032-
/**********************************************************************/
10331035
static int Try_Browser(char *browser, REBCHR *url)
10341036
{
10351037
pid_t pid;

0 commit comments

Comments
 (0)