summaryrefslogtreecommitdiffstats
path: root/src/hdf4-1-portability-fixes.patch
blob: bef8c8065d1432258d54f352c7eb07f00ea3a34a (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
45
This file is part of MXE.
See index.html for further 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 @@
   *-mac-*)              BAR="mac"         ;;
   *-apple*)             BAR="apple"       ;;
   i686-pc-cygwin*)      BAR="linux"       ;;
+  *-*-mingw*)	         BAR="linux"       ;;
   *)                    echo "*** unknown host $host!"; exit 1 ;;
 esac
 src_files="mfhdf/libsrc/config/netcdf-FOO.h:mfhdf/libsrc/netcdf.h
--- 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