Skip to content

Commit

Permalink
Merge pull request #218 from ffontaine/master
Browse files Browse the repository at this point in the history
utils.c: fix build on uclibc
  • Loading branch information
rhatdan authored Jun 22, 2020
2 parents a7dd943 + 321fa87 commit 50ab2c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
# define __NR_openat2 437
#endif

/* uClibc and uClibc-ng don't provide O_TMPFILE */
#ifndef O_TMPFILE
# define O_TMPFILE (020000000 | O_DIRECTORY)
#endif

/* List of all valid flags for the open/openat flags argument: */
#define VALID_OPEN_FLAGS \
(O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
Expand Down

0 comments on commit 50ab2c2

Please sign in to comment.