cnijfilter2: add patch to fix missing import (#369086)

This commit is contained in:
Weijia Wang
2025-01-03 23:41:37 +01:00
committed by GitHub
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -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
@@ -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"