From 049c70eb011248a1ff7f18428d0611ac03002372 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@voidlinux.eu>
Date: Thu, 28 May 2015 07:45:09 +0200
Subject: [PATCH] libnih: SIGCLD is not portable, use SIGCHLD instead.

---
 srcpkgs/libnih/patches/musl.patch | 11 +++++++++++
 srcpkgs/libnih/template           |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/libnih/patches/musl.patch

diff --git a/srcpkgs/libnih/patches/musl.patch b/srcpkgs/libnih/patches/musl.patch
new file mode 100644
index 00000000000..15afdd86a71
--- /dev/null
+++ b/srcpkgs/libnih/patches/musl.patch
@@ -0,0 +1,11 @@
+--- nih/signal.c.orig	2015-05-28 07:43:36.187018255 +0200
++++ nih/signal.c	2015-05-28 07:44:15.098421531 +0200
+@@ -87,7 +87,7 @@ static const SignalName signal_names[] =
+ 	{ SIGSTKFLT, "STKFLT" },
+ #endif
+ 	{ SIGCHLD,   "CHLD"   },
+-	{ SIGCLD,    "CLD"    },
++	{ SIGCHLD,   "CLD"    },
+ 	{ SIGCONT,   "CONT"   },
+ 	{ SIGSTOP,   "STOP"   },
+ 	{ SIGTSTP,   "TSTP"   },
diff --git a/srcpkgs/libnih/template b/srcpkgs/libnih/template
index 5edd56ecd49..304ebd3622e 100644
--- a/srcpkgs/libnih/template
+++ b/srcpkgs/libnih/template
@@ -1,7 +1,7 @@
 # Template file for 'libnih'
 pkgname=libnih
 version=1.0.3
-revision=2
+revision=3
 build_style=gnu-configure
 configure_args="--enable-threading"
 hostmakedepends="automake libtool gettext-devel pkg-config"