summaryrefslogtreecommitdiff
path: root/sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch')
-rw-r--r--sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch b/sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch
new file mode 100644
index 000000000000..7ceef8e4b52e
--- /dev/null
+++ b/sci-astronomy/pal/files/pal-0.9.8-fix-strlcpy-musl.patch
@@ -0,0 +1,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 */