File: kfreebsd_hurd_support.patch

package info (click to toggle)
cmor 3.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,948 kB
  • sloc: ansic: 28,083; f90: 13,872; python: 12,399; sh: 3,731; makefile: 112
file content (30 lines) | stat: -rw-r--r-- 1,036 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
26
27
28
29
30
Author: Andreas Beckmann <anbe@debian.org>
Description: treat kFreeBSD and Hurd like Linux w.r.t. guessing the fortran compiler
  Also define PATH_MAX
Last-Updated: 2018-07-02
Forwarded: no

--- a/include/cdTime/cfortran.h
+++ b/include/cdTime/cfortran.h
@@ -206,7 +206,7 @@
 #define       f2cFortran 
 #define	      gFortran /* 8/26/08 (KMCCARTY) */
 #endif
-#if        defined(__GNUC__) && defined(linux) /* 06/21/00 PDW (CFITSIO) */
+#if        defined(__GNUC__) && (defined(linux) || defined(__FreeBSD_kernel__) || defined(__GNU__)) /* 06/21/00 PDW (CFITSIO) */
 #define       f2cFortran 
 #define	      gFortran /* 8/26/08 (KMCCARTY) */
 #endif
--- a/Src/cmor.c
+++ b/Src/cmor.c
@@ -24,6 +24,10 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#ifndef PATH_MAX /* Hurd */
+#define PATH_MAX 1024
+#endif
+
 /* ==================================================================== */
 /*      this is defining NETCDF4 variable if we are                     */
 /*      using NETCDF3 not used anywhere else                            */