3
0
Fork 0
forked from mirrors/nixpkgs

libredirect: fix build on darwin (#78399)

libredirect: fix build on darwin
This commit is contained in:
Jörg Thalheim 2020-01-24 11:43:55 +00:00 committed by GitHub
commit 3c62a82259
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,11 @@ static const char * rewrite(const char * path, char * buf)
static int open_needs_mode(int flags)
{
#ifdef O_TMPFILE
return (flags & O_CREAT) || (flags & O_TMPFILE) == O_TMPFILE;
#else
return flags & O_CREAT;
#endif
}
/* The following set of Glibc library functions is very incomplete -