void-packages/srcpkgs/xbps/patches/0002-lib-initend.c-define-_BSD_SOURCE-for-strlcpy-with-mu.patch
2014-01-08 14:24:02 +01:00

27 lines
653 B
Diff

From ae81cd1ea9c98ac3bf61ba581e3b3c63255465bd Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Tue, 7 Jan 2014 21:20:42 +0100
Subject: [PATCH 2/2] lib/initend.c: define _BSD_SOURCE for strlcpy() with
musl.
---
lib/initend.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/initend.c b/lib/initend.c
index 21d3bc5..00ef1a4 100644
--- a/lib/initend.c
+++ b/lib/initend.c
@@ -27,7 +27,9 @@
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
+#define _BSD_SOURCE /* required by strlcpy with musl */
#include <string.h>
+#undef _BSD_SOURCE
#include <errno.h>
#include <stdarg.h>
#include <dirent.h>
--
1.8.5.2