summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--futility/updater_archive.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/futility/updater_archive.c b/futility/updater_archive.c
index 36873a68..218499e4 100644
--- a/futility/updater_archive.c
+++ b/futility/updater_archive.c
@@ -17,6 +17,13 @@
#include <unistd.h>
#ifdef HAVE_LIBZIP
+#ifndef __clang__
+/* If libzip headers were built for Clang but later get included with GCC you
+ need this. This check should really be in libzip but apparently they think
+ it's fine to ship compiler-specific system headers or something... */
+#define _Nullable
+#define _Nonnull
+#endif
#include <zip.h>
#endif