summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'patchsets/motif/2.3.8/11_all_acinclude.patch')
-rw-r--r--patchsets/motif/2.3.8/11_all_acinclude.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/patchsets/motif/2.3.8/11_all_acinclude.patch b/patchsets/motif/2.3.8/11_all_acinclude.patch
new file mode 100644
index 0000000..44f412e
--- /dev/null
+++ b/patchsets/motif/2.3.8/11_all_acinclude.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/870799
+
+--- motif-2.3.8/acinclude.m4
++++ motif-2.3.8/acinclude.m4
+@@ -18,6 +18,7 @@
+ CFLAGS="$X_CFLAGS $CFLAGS"
+ CPPFLAGS="$X_CFLAGS $CPPFLAGS"
+ AC_TRY_RUN([
++#include <stdlib.h>
+ #include <X11/Intrinsic.h>
+ int main() {
+ Boolean brc;
+@@ -50,7 +51,8 @@
+ AC_DEFUN([AM_FUNC_VOID_SPRINTF],
+ [AC_CACHE_CHECK(whether sprintf returns void, ac_cv_func_void_sprintf,
+ [AC_TRY_RUN([#include <stdio.h>
+-int sprintf(); main() { exit(sprintf(".")); }],
++#include <stdlib.h>
++int main() { exit(sprintf(".")); }],
+ ac_cv_func_void_sprintf=no, ac_cv_func_void_sprintf=yes, ac_cv_func_void_sprintf=yes)])
+ if test $ac_cv_func_void_sprintf = no; then
+ AC_DEFINE(VOID_SPRINTF,1,