aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/common.h b/common.h
index 66a8ded..f1b5f12 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
@@ -267,5 +271,4 @@ void test_assert(const char *file, int line, enum assert_type type, enum assert_
#define ASSERT_ZERO(HAVE)\
ASSERT_EQ_INT(HAVE, 0)
-
#endif