summaryrefslogtreecommitdiffstats
path: root/src/hdf4-1-portability-fixes.patch
blob: 473955a3f10d00a67db9f935b49edd51e8cf11e5 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
This file is part of MXE. See LICENSE.md for licensing information.

--- a/configure.ac	2012-12-02 11:01:36.252405122 +0100
+++ b/configure.ac	2012-12-02 11:00:05.580408916 +0100
@@ -739,6 +739,7 @@
   *-*-solaris2*)        BAR="solaris"     ;;
   *-apple*)             BAR="apple"       ;;
   *-pc-cygwin*)         BAR="linux"       ;;
+  *-*-mingw*)	         BAR="linux"       ;;
   *)                    echo "*** unknown host $host!"; exit 1 ;;
 esac
 src_files=""
--- a.hdf/src/hdfi.h	2012-12-02 11:05:59.140394129 +0100
+++ b/hdf/src/hdfi.h	2012-12-02 11:05:32.528395313 +0100
@@ -865,8 +865,8 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #else /* !UNIX386 */
-#include <sys\types.h>      /* for unbuffered file I/O */
-#include <sys\stat.h>
+#include <sys/types.h>      /* for unbuffered file I/O */
+#include <sys/stat.h>
 #include <io.h>
 #include <conio.h>          /* for debugging getch() calls */
 #include <malloc.h>
--- a/mfhdf/ncgen/Makefile.am	2012-12-02 19:04:08.512697688 +0100
+++ b/mfhdf/ncgen/Makefile.am	2012-12-02 19:14:01.636713531 +0100
@@ -23,16 +23,6 @@
 
 bin_PROGRAMS = ncgen
 
-if HDF_BUILD_NETCDF
-if HDF_BUILD_FORTRAN
-noinst_PROGRAMS = ctest0 ftest0
-else 
-noinst_PROGRAMS = ctest0
-endif
-else
-noinst_PROGRAMS = ctest0
-endif
-
 ## Information for building the "ncgen" program
 ncgen_SOURCES = close.c escapes.c generate.c genlib.c getfill.c init.c      \
                 load.c main.c ncgentab.c