summaryrefslogtreecommitdiff
path: root/sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch
blob: 7ceef8e4b52e44d6f150cf52519e51d888fedadf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Bug: https://bugs.gentoo.org/898106
bsd/string.h is available on most libc's
--- a/palDfltin.c
+++ b/palDfltin.c
@@ -121,6 +121,9 @@ static int ISBLANK( int c ) {
 
 #ifdef HAVE_BSD_STRING_H
 #include <bsd/string.h>
+#else
+#define _GNU_SOURCE
+#define __USE_MISC
 #endif
 
 /* System include files */