aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-06-19 23:59:56 -0400
committerMike Frysinger <vapier@gentoo.org>2016-06-19 23:59:56 -0400
commit2635cfd8efbbdda134c0b7ec2cd97588a01e295b (patch)
tree2fb44b8284e6bb16d617473655906e853af95a00
parentscanelf: avoid leaking out_format when multiple --format args are passed (diff)
downloadpax-utils-2635cfd8efbbdda134c0b7ec2cd97588a01e295b.tar.gz
pax-utils-2635cfd8efbbdda134c0b7ec2cd97588a01e295b.tar.bz2
pax-utils-2635cfd8efbbdda134c0b7ec2cd97588a01e295b.zip
porting: add O_PATH fallback too
-rw-r--r--porting.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/porting.h b/porting.h
index 2d79f28..8f2694b 100644
--- a/porting.h
+++ b/porting.h
@@ -221,6 +221,9 @@
#ifndef O_CLOEXEC
# define O_CLOEXEC 0
#endif
+#ifndef O_PATH
+# define O_PATH 0
+#endif
#define __unused__ __attribute__((__unused__))