Starting with HDF5 1.10.0, the H5FD_class_t structure has a new (#20529)

"terminate" member.  Initialize it to NULL.
This commit is contained in:
QuellynSnead 2020-12-24 21:35:19 -07:00 committed by GitHub
parent c214e4dd2d
commit 6684cb165a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff --git a/src/hdf5_drv/H5FDsilo.c b/src/hdf5_drv/H5FDsilo.c
index 840dfd0..0d09147 100644
--- a/src/hdf5_drv/H5FDsilo.c
+++ b/src/hdf5_drv/H5FDsilo.c
@@ -500,6 +500,7 @@ static const H5FD_class_t H5FD_silo_g = {
"silo", /*name */
MAXADDR, /*maxaddr */
H5F_CLOSE_WEAK, /* fc_degree */
+ NULL, /*terminate */
H5FD_silo_sb_size, /*sb_size */
H5FD_silo_sb_encode, /*sb_encode */
H5FD_silo_sb_decode, /*sb_decode */

View File

@ -38,6 +38,7 @@ class Silo(AutotoolsPackage):
depends_on('zlib')
patch('remove-mpiposix.patch', when='@4.8:4.10.2')
patch('H5FD_class_t-terminate.patch', when='^hdf5@1.10.0:')
def flag_handler(self, name, flags):
spec = self.spec