summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix.c b/src/posix.c
index 7b2962feb..7484ac0d8 100644
--- a/src/posix.c
+++ b/src/posix.c
@@ -99,7 +99,7 @@ const char *p_gai_strerror(int ret)
#endif /* NO_ADDRINFO */
-int p_open(const char *path, int flags, ...)
+int p_open(const char *path, volatile int flags, ...)
{
mode_t mode = 0;