From 5ec42885b29419fd384b672c546af913491b9700 Mon Sep 17 00:00:00 2001
From: Alexander Pyhalov <apyhalov@gmail.com>
Date: Thu, 26 Nov 2015 23:43:37 +0300
Subject: [PATCH 01/13] Fix build on illumos (pwp->dfp is void * and should be
 converted to FILE *)

---
 lib/packlib.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/packlib.c b/lib/packlib.c
index 2711d94..8acb7be 100644
--- a/lib/packlib.c
+++ b/lib/packlib.c
@@ -408,7 +408,7 @@ PutPW(pwp, string)
 	fwrite((char *) &datum, sizeof(datum), 1, pwp->ifp);
 
 	fputs(pwp->data_put[0], pwp->dfp);
-	putc(0, pwp->dfp);
+	putc(0, (FILE*) pwp->dfp);
 
 	ostr = pwp->data_put[0];
 
@@ -421,10 +421,10 @@ PutPW(pwp, string)
 	    if (nstr[0])
 	    {
 		for (j = 0; ostr[j] && nstr[j] && (ostr[j] == nstr[j]); j++);
-		putc(j & 0xff, pwp->dfp);
+		putc(j & 0xff, (FILE*) pwp->dfp);
 		fputs(nstr + j, pwp->dfp);
 	    }
-	    putc(0, pwp->dfp);
+	    putc(0, (FILE*) pwp->dfp);
 
 	    ostr = nstr;
 	}
-- 
2.19.1

