File: Remove-old-construction-that-prevents-compilation-on-new-.patch

package info (click to toggle)
pybdsf 1.9.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,960 kB
  • sloc: fortran: 40,850; python: 14,854; ansic: 4,339; cpp: 1,583; makefile: 161; sh: 6
file content (25 lines) | stat: -rw-r--r-- 764 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Martin Hardcastle <mjh@extragalactic.info>
Date: Sun, 8 Mar 2020 08:05:49 +0000
Subject: Remove old construction that prevents compilation on new Linux
 distributions

---
 natgrid/Include/nnmhead.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/natgrid/Include/nnmhead.h b/natgrid/Include/nnmhead.h
index 9c0a2eb..4610df1 100644
--- a/natgrid/Include/nnmhead.h
+++ b/natgrid/Include/nnmhead.h
@@ -39,11 +39,7 @@ int     datcnt, datcnt3, numtri, imag, numnei, iscale,
 char    tri_file[256] = {"nnalg.dat"}, error_file[256] = {"stderr"},
         emsg[256];
 
-#ifdef __linux__
-FILE    *fopen(), *filee = _IO_stderr;
-#else
 FILE    *fopen(), *filee = NULL;
-#endif
 
 extern void   Gradient();
 extern void   ErrorHnd(int, char *, FILE *, char *);