$OpenBSD: patch-notmuch-restore_c,v 1.2 2020/08/13 18:21:19 sthen Exp $

older zlib

Index: notmuch-restore.c
--- notmuch-restore.c.orig
+++ notmuch-restore.c
@@ -450,7 +450,7 @@ notmuch_restore_command (notmuch_config_t *config, int
 	notmuch_database_destroy (notmuch);
 
     if (input) {
-	errnum = gzclose_r (input);
+	errnum = gzclose (input);
 	if (errnum) {
 	    fprintf (stderr, "Error closing %s: %d\n",
 		     name_for_error, errnum);
