Skip to content

Commit 4b59d59

Browse files
committed
FIX: warning: implicit declaration of function ‘pipe2’
1 parent 563f23f commit 4b59d59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/os/posix/host-lib.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ static void *Task_Ready;
7979
#define PATH_MAX 4096 // generally lacking in Posix
8080
#endif
8181

82-
82+
#ifndef USE_OLD_PIPE
83+
int pipe2(int pipefd[2], int flags); //to avoid "implicit-function-declaration" warning
84+
#endif
8385

8486
/***********************************************************************
8587
**

0 commit comments

Comments
 (0)