diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-06-13 07:30:49 +0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-06-12 16:30:49 -0700 |
| commit | 57eea4e7c243d4e13af0b9d1dacf9ccdf583969a (patch) | |
| tree | 5d1923f471b491cf6724b04de704748b22266561 /ports/netcdf-c/fix-build-error-on-linux.patch | |
| parent | 8c49e565c0eb565fd76df76144dd78d70a211d6e (diff) | |
| download | vcpkg-57eea4e7c243d4e13af0b9d1dacf9ccdf583969a.tar.gz vcpkg-57eea4e7c243d4e13af0b9d1dacf9ccdf583969a.zip | |
[netcdf-c]Fix build error on linux. (#6865)
Diffstat (limited to 'ports/netcdf-c/fix-build-error-on-linux.patch')
| -rw-r--r-- | ports/netcdf-c/fix-build-error-on-linux.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ports/netcdf-c/fix-build-error-on-linux.patch b/ports/netcdf-c/fix-build-error-on-linux.patch new file mode 100644 index 000000000..bdcd7c97a --- /dev/null +++ b/ports/netcdf-c/fix-build-error-on-linux.patch @@ -0,0 +1,28 @@ +diff --git a/include/ncconfigure.h b/include/ncconfigure.h +index 2c5b2c8..d397790 100644 +--- a/include/ncconfigure.h ++++ b/include/ncconfigure.h +@@ -25,20 +25,20 @@ missing functions should be + defined and missing types defined. + */ + +-#ifndef HAVE_STRDUP ++#ifndef strdup + extern char* strdup(const char*); + #endif + + /* handle null arguments */ + #ifndef nulldup +-#ifdef HAVE_STRDUP ++#ifdef strdup + #define nulldup(s) ((s)==NULL?NULL:strdup(s)) + #else + char *nulldup(const char* s); + #endif + #endif + +-#ifdef _MSC_VER ++#ifdef _WIN32 + #ifndef HAVE_SSIZE_T + #include <basetsd.h> + typedef SSIZE_T ssize_t; |
