Mercurial > hg > mxe
view src/hdf4-1-portability-fixes.patch @ 3032:88969381a4b5 draft
package hdf4: expand range of host os check
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Mon, 31 Dec 2012 02:06:40 +1100 |
parents | ab8ac5889a4c |
children |
line wrap: on
line source
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 @@ -556,7 +556,6 @@ dnl ====================================================================== dnl Always put the /usr/include/rpc directory first in the search list. -CPPFLAGS="-I/usr/include/rpc $CPPFLAGS" dnl ---------------------------------------------------------------------- dnl We're trying to link against the rpc library when building on Cygwin, @@ -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