aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/common.h b/common.h
index 66a8ded..e2ac828 100644
--- a/common.h
+++ b/common.h
@@ -12,7 +12,11 @@
#include <string.h>
#include <unistd.h>
-#if !defined(__linux__)
+
+#if defined(__linux__)
+# define STRUCT_OPEN_HOW struct open_how
+#else
+# define STRUCT_OPEN_HOW void
int libexec_openat2(struct libexec_command *cmd, int fd, int dirfd, const char *file, void *how, size_t size);
#endif