diff options
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |