summaryrefslogtreecommitdiff
path: root/dev-libs/liboil/files/liboil-0.3.17-c99-configure.patch
blob: 7feba8a24d99f51e511cb2ecf59def626c7bf21e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
https://bugs.gentoo.org/906533
--- a/m4/as-unaligned-access.m4
+++ b/m4/as-unaligned-access.m4
@@ -19,6 +19,7 @@ AC_DEFUN([AS_UNALIGNED_ACCESS], [
   fi
   if test x"$as_cv_unaligned_access" = x ; then
     AC_TRY_RUN([
+#include <string.h>
 int main(int argc, char **argv)
 {
   char array[] = "ABCDEFGH";
--- a/configure
+++ b/configure
@@ -12022,6 +12022,7 @@ else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+#include <string.h>
 int main(int argc, char **argv)
 {
   char array[] = "ABCDEFGH";