From 2e3d889da79e4e362129438fd699c2758e17fc36 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Wed, 23 Nov 2022 10:04:48 +0100 Subject: motif: Fix some function declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/870799 Signed-off-by: Ulrich Müller --- patchsets/motif/2.3.8/10_all_string_h.patch | 22 ++++++++++++++++++++++ patchsets/motif/2.3.8/11_all_acinclude.patch | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 patchsets/motif/2.3.8/10_all_string_h.patch create mode 100644 patchsets/motif/2.3.8/11_all_acinclude.patch diff --git a/patchsets/motif/2.3.8/10_all_string_h.patch b/patchsets/motif/2.3.8/10_all_string_h.patch new file mode 100644 index 0000000..5080f13 --- /dev/null +++ b/patchsets/motif/2.3.8/10_all_string_h.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/870799 + +--- motif-2.3.8/lib/Xm/XpmI.h ++++ motif-2.3.8/lib/Xm/XpmI.h +@@ -129,7 +129,7 @@ + extern FILE *popen(); + #endif + +-#if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(WIN32) || defined (_SVID_SOURCE) ++#if defined(HAVE_STRING_H) + #include + + #ifndef index +@@ -140,7 +140,7 @@ + #define rindex strrchr + #endif + +-#else /* defined(SYSV) || defined(SVR4) || defined(VMS) */ ++#else + #include + #endif + 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 + #include + 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 +-int sprintf(); main() { exit(sprintf(".")); }], ++#include ++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, -- cgit v1.2.3-65-gdbad