aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/portability.h')
-rw-r--r--lib/portability.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 740a4ee5..b25048fe 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -226,6 +226,10 @@ ssize_t getline(char **lineptr, size_t *n, FILE *stream);
#define O_CLOEXEC 02000000
#endif
+#ifndef O_PATH
+#define O_PATH 010000000
+#endif
+
#if defined(__SIZEOF_DOUBLE__) && defined(__SIZEOF_LONG__) \
&& __SIZEOF_DOUBLE__ <= __SIZEOF_LONG__
typedef double FLOAT;
@@ -257,5 +261,7 @@ int getcon(void* con);
#define smack_set_label_for_self(...) (-1)
#define XATTR_NAME_SMACK ""
#define SMACK_LABEL_LEN (1) /* for just ? */
+
+ssize_t fgetxattr (int fd, char *name, void *value, size_t size);
#endif