Skip to content

Commit

Permalink
cnijfilter2: add patch to fix missing import (#369086)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Jan 3, 2025
2 parents 14a0b57 + 913c5d2 commit 7f5756b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/by-name/cn/cnijfilter2/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ stdenv.mkDerivation {

patches = [
./patches/get_protocol.patch
./patches/add_missing_import.patch
];

# lgmon3's --enable-libdir flag is used soley for specifying in which
Expand Down
12 changes: 12 additions & 0 deletions pkgs/by-name/cn/cnijfilter2/patches/add_missing_import.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/lgmon3/src/keytext.c b/lgmon3/src/keytext.c
index 8c15ff8..b80bbe5 100644
--- a/lgmon3/src/keytext.c
+++ b/lgmon3/src/keytext.c
@@ -37,6 +37,7 @@
#include <unistd.h>
#include <libxml/parser.h> /* Ver.2.80 */
#include <string.h>
+#include <stdlib.h>

#include "keytext.h"

0 comments on commit 7f5756b

Please sign in to comment.