boxfs: fix build with gcc15 (#508519)
This commit is contained in:
@@ -44,6 +44,7 @@ stdenv.mkDerivation {
|
||||
patches = [
|
||||
./work-around-API-borkage.patch
|
||||
./libapp-include-ctype.diff
|
||||
./use-stdbool.patch
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
||||
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user