From cf9a5530e14c420136eacf12cac181c36c5f6e13 Mon Sep 17 00:00:00 2001
From: Brian Behlendorf <behlendorf1@llnl.gov>
Date: Thu, 15 Jan 2009 15:52:12 -0800
Subject: [PATCH] Fix pthreads prototype

---
 cmd/ztest/ztest.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c
index 736e175f1d..126ab990ad 100644
--- a/cmd/ztest/ztest.c
+++ b/cmd/ztest/ztest.c
@@ -2937,15 +2937,18 @@ ztest_spa_import_export(char *oldname, char *newname)
 	nvlist_free(config);
 }
 
-static void
-ztest_resume(spa_t *spa)
+static void *
+ztest_resume(void *arg)
 {
+	spa_t *spa = arg;
+
 	if (spa_suspended(spa)) {
 		spa_vdev_state_enter(spa);
 		vdev_clear(spa, NULL);
 		(void) spa_vdev_state_exit(spa, NULL, 0);
 		zio_resume(spa);
 	}
+	return (NULL);
 }
 
 static void *