diff options
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r-- | libcrystfel/src/image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index 9768e15d..6358a9d0 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -787,8 +787,10 @@ static float *read_cbf_data(struct imagefile *f, int *w, int *h) gzfh = gzopen(f->filename, "rb"); if ( gzfh == NULL ) return NULL; + #ifdef HAVE_GZBUFFER /* Set larger buffer size for hopefully faster uncompression */ gzbuffer(gzfh, 128*1024); + #endif buf = malloc(bufsz); if ( buf == NULL ) return NULL; |