slurm-spank-stunnel: add backward compatibility patch

This commit is contained in:
Markus Kowalewski
2026-06-04 14:47:50 +02:00
parent 25aec847ad
commit dba6c890cb
2 changed files with 19 additions and 1 deletions
@@ -0,0 +1,15 @@
diff --git a/slurm-spank-stunnel.c b/slurm-spank-stunnel.c
index b79cea0..c135bf5 100644
--- a/slurm-spank-stunnel.c
+++ b/slurm-spank-stunnel.c
@@ -41,6 +41,10 @@
#include <arpa/inet.h>
#include <errno.h>
+#ifndef SLURM_BACKWARD_COMPAT
+#define SLURM_BACKWARD_COMPAT 1
+#endif
+
#include <slurm/slurm.h>
#include <slurm/spank.h>
@@ -16,7 +16,10 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "15cpd49ccvzsmmr3gk8svm2nz461rvs4ybczckyf4yla0xzp06gj";
};
patches = [ ./hostlist.patch ];
patches = [
./hostlist.patch
./backward-compat.patch
];
buildPhase = ''
gcc -I${lib.getDev slurm}/include -shared -fPIC -o stunnel.so slurm-spank-stunnel.c