Author: Steven Chamberlain <steven@pyro.eu.org>
Description: The missing sys/stat.h prototype leads to an implicit declaration
 of fchmod(), which uses signed int while kFreeBSD expects unsigned int, which
 results in a wrong bitmap, which leads to a build failure.
 This is only required for the fig2mpdf patch.
Bug-Debian: http://bugs.debian.org/654767
Forwarded: Loimer Thomas <thomas.loimer@tuwien.ac.at> on Sun, 15 May 2016 12:48:49 +0200

--- a/fig2dev/dev/genpstex.c
+++ b/fig2dev/dev/genpstex.c
@@ -48,6 +48,7 @@
 #include <string.h>
 #include <stdlib.h>
 
+#include <sys/stat.h>
 #include "fig2dev.h"
 #include "object.h"
 #include "texfonts.h"
