From 95a97c3f0b0d048aaf9e183702a1d06b30415b35 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 18 Sep 2022 05:18:37 +0100 Subject: gentoo auto-resync : 18:09:2022 - 05:18:37 --- ...ds-0.1.3-configure-implicit-function-decl.patch | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 x11-misc/xsetleds/files/xsetleds-0.1.3-configure-implicit-function-decl.patch (limited to 'x11-misc/xsetleds/files') diff --git a/x11-misc/xsetleds/files/xsetleds-0.1.3-configure-implicit-function-decl.patch b/x11-misc/xsetleds/files/xsetleds-0.1.3-configure-implicit-function-decl.patch new file mode 100644 index 000000000000..3235053c8b7e --- /dev/null +++ b/x11-misc/xsetleds/files/xsetleds-0.1.3-configure-implicit-function-decl.patch @@ -0,0 +1,75 @@ +https://bugs.gentoo.org/870571 + +Not sent upstream as it's a generated file and configure.in +is written for autoconf 2.13. +--- a/configure ++++ b/configure +@@ -1057,7 +1057,7 @@ cat > conftest.$ac_ext << EOF + #line 1058 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(){return(0);} + EOF + if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes +@@ -1304,6 +1304,7 @@ else + #line 1305 "configure" + #include "confdefs.h" + #include ++#include + #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') + #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +@@ -2477,7 +2478,7 @@ for ac_kw in inline __inline__ __inline; do + #include "confdefs.h" + + int main() { +-} $ac_kw foo() { ++} int $ac_kw foo() { + ; return 0; } + EOF + if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +@@ -2855,13 +2856,14 @@ else + cat > conftest.$ac_ext < + /* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ + #include + /* Override any gcc2 internal prototype to avoid an error. */ + /* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +-char $ac_func(); ++int $ac_func(); + + int main() { + +@@ -2934,14 +2936,13 @@ else + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ + #include ++#include + #include + #include ++#include ++#include + +-/* This mess was copied from the GNU getpagesize.h. */ + #ifndef HAVE_GETPAGESIZE +-# ifdef HAVE_UNISTD_H +-# include +-# endif + + /* Assume that all systems that can run configure have sys/param.h. */ + # ifndef HAVE_SYS_PARAM_H +@@ -2981,7 +2982,7 @@ else + #ifdef __cplusplus + extern "C" { void *malloc(unsigned); } + #else +-char *malloc(); ++void *malloc(); + #endif + + int -- cgit v1.2.3