$OpenBSD: patch-src_mime-type_mime-action_c,v 1.1 2010/07/16 13:15:19 ajacoutot Exp $
--- src/mime-type/mime-action.c.orig	Wed Feb 13 05:57:18 2008
+++ src/mime-type/mime-action.c	Fri Jul 16 15:10:42 2010
@@ -27,6 +27,11 @@
 #include "glib-utils.h"
 #include <string.h>
 
+#include <sys/types.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+
 gboolean save_to_file( const char* path, const char* data, gssize len )
 {
     int fd = creat( path, 0644 );
