summaryrefslogtreecommitdiff
path: root/sci-astronomy/montage/files/montage-5.0-c23.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy/montage/files/montage-5.0-c23.patch')
-rw-r--r--sci-astronomy/montage/files/montage-5.0-c23.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/sci-astronomy/montage/files/montage-5.0-c23.patch b/sci-astronomy/montage/files/montage-5.0-c23.patch
new file mode 100644
index 000000000000..02798a47ebf3
--- /dev/null
+++ b/sci-astronomy/montage/files/montage-5.0-c23.patch
@@ -0,0 +1,34 @@
+Add missing library header, remove unused function
+https://bugs.gentoo.org/920316
+https://bugs.gentoo.org/741080
+--- a/grid/Pegasus/mPresentation.c 2025-03-02 22:04:54.247085465 +0400
++++ b/grid/Pegasus/mPresentation.c 2025-03-02 22:06:57.356329407 +0400
+@@ -14,6 +14,7 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <strings.h>
++#include <string.h>
+
+ #define MAXLEN 20000
+
+--- a/lib/src/two_plane_v1.1/initdistdata.c 2025-03-02 22:04:54.227996254 +0400
++++ b/lib/src/two_plane_v1.1/initdistdata.c 2025-03-02 22:06:11.307762628 +0400
+@@ -26,18 +26,6 @@
+ return 0;
+ }
+
+-void closefitsfile()
+-{
+- int I_fits_return_status=0;
+- fits_close_file(ffp_FITS_In, &I_fits_return_status);
+- if (I_fits_return_status != 0)
+- {
+- fprintf(stderr, "Error closing file\n");
+- return -1;
+- }
+- return 0;
+-}
+-
+ int initdata_byheader(char *fitsheader, DistCoeff *coeff)
+ {
+ int i, j, m=0, n=0;