aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-02-16 21:14:24 +0000
committerMike Frysinger <vapier@gentoo.org>2014-02-16 21:14:24 +0000
commit8a2857f3ced8f191b56a3e690cacf03a3a745d67 (patch)
tree7d068af7d631e9073893504d0c19a5bb65bf7558 /porting.h
parentqcache/qcheck: use O_CLOEXEC in more places (diff)
downloadportage-utils-8a2857f3ced8f191b56a3e690cacf03a3a745d67.tar.gz
portage-utils-8a2857f3ced8f191b56a3e690cacf03a3a745d67.tar.bz2
portage-utils-8a2857f3ced8f191b56a3e690cacf03a3a745d67.zip
start using O_PATH
Diffstat (limited to 'porting.h')
-rw-r--r--porting.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/porting.h b/porting.h
index 8c93f05..f36d6b7 100644
--- a/porting.h
+++ b/porting.h
@@ -1,7 +1,7 @@
/*
* Copyright 2005-2013 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/porting.h,v 1.1 2013/09/29 22:42:36 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/porting.h,v 1.2 2014/02/16 21:14:24 vapier Exp $
*
* Copyright 2005-2008 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2013 Mike Frysinger - <vapier@gentoo.org>
@@ -66,6 +66,9 @@
#ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
+#ifndef O_PATH
+#define O_PATH 0
+#endif
#ifndef CONFIG_EPREFIX
#define CONFIG_EPREFIX "/"