view src/netcdf-1-fixes.patch @ 5881:c30da1cd5e3b release

* build-gettext.mk: as with gettext, only build runtime and tools.
author John W. Eaton <jwe@octave.org>
date Tue, 07 Sep 2021 15:33:58 -0400
parents 440ce30431c2
children f62e01947a77
line wrap: on
line source

diff --git "a/netcdf/ncdump/ncvalidator.c" "b/netcdf/ncdump/ncvalidator.c"
index a0e4acb..2a7c5af 100644
--- "a/ncdump/ncvalidator.c"	
+++ "b/ncdump/ncvalidator.c"
@@ -76,7 +76,9 @@ THIS SOFTWARE.
 #ifdef _WIN32
 #include <io.h>
 #define snprintf _snprintf
+#ifndef HAVE_UNISTD_H
 #include "XGetopt.h"
+#endif
 int opterr;
 int optind;
 #endif