mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
boxfs: add missing includes to fix clang build
This commit is contained in:
parent
f478e1cb40
commit
fd29e43fcb
@ -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 ];
|
||||
|
11
pkgs/tools/filesystems/boxfs/libapp-include-ctype.diff
Normal file
11
pkgs/tools/filesystems/boxfs/libapp-include-ctype.diff
Normal 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>
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user