From 369fc0c823ce5108840caa35871d968b106916ec Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Mon, 21 Nov 2022 19:32:15 +0100 Subject: [PATCH] iscan: fix build --- srcpkgs/iscan/patches/c99.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/iscan/patches/c99.patch diff --git a/srcpkgs/iscan/patches/c99.patch b/srcpkgs/iscan/patches/c99.patch new file mode 100644 index 00000000000..3a7432dc79c --- /dev/null +++ b/srcpkgs/iscan/patches/c99.patch @@ -0,0 +1,26 @@ +https://aur.archlinux.org/cgit/aur.git/commit/iscan-2.30.4.2-c99.patch?h=iscan&id=32ff91a61c0d1eb7a0a3a757cfaaa2034dd48dc1 + +--- a/backend/defines.h 2021-01-04 08:13:48.995137756 -0000 ++++ b/backend/defines.h 2021-01-04 08:16:00.524563361 -0000 +@@ -31,6 +31,13 @@ + + + #ifndef __cplusplus ++ ++/* Use the C99 bool type if available ++ */ ++#ifdef HAVE_STDBOOL_H ++#include ++#else ++ + /*! A C++ Boolean type and corresponding keywords for our C code. + */ + typedef enum { +@@ -38,6 +45,7 @@ + true + } bool; + #endif ++#endif + + + /* Run-time contract validation.