paml: fix build with GCC 15 (#516895)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-05 21:17:31 +00:00
committed by GitHub
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,11 @@
--- a/src/mcmctree.c
+++ b/src/mcmctree.c
@@ -42,7 +42,7 @@ extern double PjumpOptimum;
int GetOptions(char *ctlf);
int ReadTreeSeqs(FILE*fout);
-int ProcessNodeAnnotation();
+int ProcessNodeAnnotation(int* haslabel);
int ReadBlengthGH(char infile[]);
int GenerateBlengthGH(char infile[]);
int GetMem(void);
+5
View File
@@ -15,6 +15,11 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-P/oHaLxoQzjFuvmHyRdShHv1ayruy6O/I9w8aTyya2s=";
};
patches = [
# https://github.com/abacus-gene/paml/pull/78
./fix-ProcessNodeAnnotation-declaration.patch
];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-D_POSIX_C_SOURCE";
preBuild = ''