Description: Add missing header files
 The patch also complements the funcs.h header file so the Perl XS file
 knows what find_helices is.  For the record, it is defined in
 libmodhmm-dev, there is probably some much needed cleanup to do).

Bug-Debian: https://bugs.debian.org/1070459
Author: Andreas Tille <tille@debian.org>
Reviewed-By: Étienne Mollier <emollier@debian.org>
Last-Update: 2024-05-06

--- psortb.orig/bio-tools-psort-modhmm/binding.c
+++ psortb/bio-tools-psort-modhmm/binding.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 
 #include "modhmm0.92b/structs.h"
 
--- psortb.orig/bio-tools-psort-modhmm/modhmm0.92b/funcs.h
+++ psortb/bio-tools-psort-modhmm/modhmm0.92b/funcs.h
@@ -300,3 +300,6 @@
 void dump_subst_mtx(int a_size, double *mtx);
 void dump_multi_modules(struct hmm_multi_s *hmmp);
 void dump_weights(double *total_weights, int nr_seqs);
+
+/* hmmsearch */
+int find_helices(char* seq, char* hmmfilename, char* repfilename, char* path);
--- psortb.orig/bio-tools-psort-modhmm/modhmm.xs
+++ psortb/bio-tools-psort-modhmm/modhmm.xs
@@ -2,6 +2,7 @@
 #include "perl.h"
 #include "XSUB.h"
 #include "modhmm0.92b/structs.h"
+#include "modhmm0.92b/funcs.h"
 
 MODULE = Bio::Tools::PSort::ModHMM	PACKAGE = Bio::Tools::PSort::ModHMM
 
