Skip to content

Commit

Permalink
Add missing ERANGE_FILL to cmake-generated config.h. Include config.h…
Browse files Browse the repository at this point in the history
… in ncx.c.
  • Loading branch information
WardF committed Nov 14, 2023
1 parent 16841a9 commit ce33d88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config.h.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ are set when opening a binary file on Windows. */
/* if true, build byte-range Client */
#cmakedefine ENABLE_BYTERANGE 1

/* if true, enable ERANGE fill */
#cmakedefine ENABLE_ERANGE_FILL 1
#ifdef ENABLE_ERANGE_FILL
#define ERANGE_FILL 1
#endif

/* if true, use hdf5 S3 virtual file reader */
#cmakedefine ENABLE_HDF5_ROS3 1

Expand Down
2 changes: 1 addition & 1 deletion libsrc/ncx.m4
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ifdef(`PNETCDF',`
`#'if HAVE_CONFIG_H
`#'include <config.h>
`#'endif')

#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down

0 comments on commit ce33d88

Please sign in to comment.