boxfs: add missing includes to fix clang build

This commit is contained in:
Reno Dakota 2024-05-29 10:05:35 +00:00
parent f478e1cb40
commit fd29e43fcb
No known key found for this signature in database
3 changed files with 25 additions and 3 deletions

View File

@ -32,7 +32,10 @@ in stdenv.mkDerivation {
cp -a --no-preserve=mode ${libapp} libapp
cp -a --no-preserve=mode ${libjson} libjson
'';
patches = [ ./work-around-API-borkage.patch ];
patches = [
./work-around-API-borkage.patch
./libapp-include-ctype.diff
];
buildInputs = [ curl fuse libxml2 ];
nativeBuildInputs = [ pkg-config ];

View File

@ -0,0 +1,11 @@
diff --git a/libapp/libapp/app.c b/libapp/libapp/app.c
index 0188795..f9f1cfa 100644
--- a/libapp/libapp/app.c
+++ b/libapp/libapp/app.c
@@ -1,5 +1,6 @@
#include "app.h"
+#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>

View File

@ -1,8 +1,16 @@
diff --git a/boxapi.c b/boxapi.c
index 4964273..1a32e0d 100644
index 4964273..e4b7404 100644
--- a/boxapi.c
+++ b/boxapi.c
@@ -38,8 +38,8 @@
@@ -29,6 +29,7 @@
#include <curl/curl.h>
#include <libxml/hash.h>
+#include <libxml/parser.h>
#include <libapp/app.h>
/* Building blocks for OpenBox api endpoints
@@ -38,8 +39,8 @@
// AUTH
#define API_KEY_VAL "f9ss11y2w0hg5r04jsidxlhk4pil28cf"
#define API_SECRET "r3ZHAIhsOL2FoHjgERI9xf74W5skIM0w"