diff options
author | Ulrich Müller <ulm@gentoo.org> | 2022-11-23 10:04:48 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2022-11-23 10:04:48 +0100 |
commit | 2e3d889da79e4e362129438fd699c2758e17fc36 (patch) | |
tree | fe38d016cdf4b980e8e01aac546c03a7fd51aaa0 | |
parent | pam_skey: Don't link against libnsl (diff) | |
download | ulm-2e3d889da79e4e362129438fd699c2758e17fc36.tar.gz ulm-2e3d889da79e4e362129438fd699c2758e17fc36.tar.bz2 ulm-2e3d889da79e4e362129438fd699c2758e17fc36.zip |
motif: Fix some function declarationsmotif-2.3.8-patches-3
Bug: https://bugs.gentoo.org/870799
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | patchsets/motif/2.3.8/10_all_string_h.patch | 22 | ||||
-rw-r--r-- | patchsets/motif/2.3.8/11_all_acinclude.patch | 22 |
2 files changed, 44 insertions, 0 deletions
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 <string.h> + + #ifndef index +@@ -140,7 +140,7 @@ + #define rindex strrchr + #endif + +-#else /* defined(SYSV) || defined(SVR4) || defined(VMS) */ ++#else + #include <strings.h> + #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 <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, |