packages/vtk/netcdf-4.9.2.patch
2024-07-28 18:55:17 +02:00

23 lines
1.4 KiB
Diff

--- VTK-9.3.0/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c.orig 2024-07-28 10:12:12.029915155 +0200
+++ VTK-9.3.0/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c 2024-07-28 10:13:02.312907851 +0200
@@ -243,7 +243,7 @@
vals[0] = 0; /* fill value */
/* create attribute to cause variable to fill with zeros per routine spec
*/
- if ((status = nc_put_att_longlong(exoid, propid, _FillValue, int_type, 1, vals)) != NC_NOERR) {
+ if ((status = nc_put_att_longlong(exoid, propid, NC_FillValue, int_type, 1, vals)) != NC_NOERR) {
snprintf(errmsg, MAX_ERR_LENGTH,
"ERROR: failed to create property name fill attribute in file id %d", exoid);
ex_err_fn(exoid, __func__, errmsg, status);
--- VTK-9.3.0/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c.orig 2024-07-28 10:40:43.471432979 +0200
+++ VTK-9.3.0/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c 2024-07-28 10:41:32.794520557 +0200
@@ -172,7 +172,7 @@
/* create attribute to cause variable to fill with zeros per routine spec
*/
- if ((status = nc_put_att_longlong(exoid, propid, _FillValue, int_type, 1, vals)) != NC_NOERR) {
+ if ((status = nc_put_att_longlong(exoid, propid, NC_FillValue, int_type, 1, vals)) != NC_NOERR) {
snprintf(errmsg, MAX_ERR_LENGTH,
"ERROR: failed to create property name fill attribute in file id %d", exoid);
ex_err_fn(exoid, __func__, errmsg, status);