boxfs: fix build with gcc15

This commit is contained in:
Xiangyan Sun
2026-04-09 21:20:50 -07:00
parent f97e195236
commit 0062916841
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -44,6 +44,7 @@ stdenv.mkDerivation {
patches = [
./work-around-API-borkage.patch
./libapp-include-ctype.diff
./use-stdbool.patch
];
buildInputs = [
+18
View File
@@ -0,0 +1,18 @@
diff --git a/tmp/orig_base.h b/libapp/libapp/base.h
index 7d8abdb..2f42b03 100644
--- a/tmp/orig_base.h
+++ b/libapp/libapp/base.h
@@ -1,12 +1,7 @@
#ifndef APP_BASE_H
#define APP_BASE_H
-#ifndef __cplusplus
-typedef enum {
- false = 0,
- true = 1
-} bool;
-#endif
+#include <stdbool.h>
#define ASSERT(clause) if( !clause) { fprintf(stderr, "Assertion '%s' failed at %s:%d\n", #clause, __FILE__, __LINE__ ); exit(-1); }