From 8a9185c9e06091d025da5b3ea052f0648930c7dd Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@voidlinux.eu>
Date: Sun, 31 May 2015 10:18:18 +0200
Subject: [PATCH] balsa: portability patch for musl.

---
 srcpkgs/balsa/patches/portability.patch | 10 ++++++++++
 srcpkgs/balsa/template                  |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/balsa/patches/portability.patch

diff --git a/srcpkgs/balsa/patches/portability.patch b/srcpkgs/balsa/patches/portability.patch
new file mode 100644
index 00000000000..9add8f86d3a
--- /dev/null
+++ b/srcpkgs/balsa/patches/portability.patch
@@ -0,0 +1,10 @@
+--- libbalsa/misc.c.orig	2015-05-31 10:17:19.494312782 +0200
++++ libbalsa/misc.c	2015-05-31 10:17:27.054393821 +0200
+@@ -34,6 +34,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <fcntl.h>
+ #include <sys/file.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
diff --git a/srcpkgs/balsa/template b/srcpkgs/balsa/template
index b47075aea78..c0e7c05a14b 100644
--- a/srcpkgs/balsa/template
+++ b/srcpkgs/balsa/template
@@ -1,4 +1,4 @@
-# Template file for 'balsa'
+# Template file for 'balsa'.
 pkgname=balsa
 version=2.5.2
 revision=1