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 */
|