slurm-spank-stunnel: add backward compatibility patch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user