From dfb6b11e5a5ba21c6658d87b4df83c2a05d2deab Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 15 Jan 2017 04:30:41 -0600 Subject: include pipe2/socketpair compat for macOS --- include/compat/unistd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/compat/unistd.h') diff --git a/include/compat/unistd.h b/include/compat/unistd.h index 52255bb..14825eb 100644 --- a/include/compat/unistd.h +++ b/include/compat/unistd.h @@ -40,4 +40,8 @@ int getentropy(void *buf, size_t buflen); #define pledge(request, paths) 0 +#ifndef HAVE_PIPE2 +int pipe2(int fildes[2], int flags); +#endif + #endif -- cgit v1.2.3-55-g6feb