diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-23 00:06:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-23 00:06:15 +0100 |
commit | 0e1abc96fea41c994e56391bd01c5c9298236783 (patch) | |
tree | 53f4297b17f44131f819fb0ae2ce606dc7121108 /net-misc/rdesktop/files | |
parent | cf59cc78468c9bcfef9e16b7b27c115896d805fd (diff) |
gentoo auto-resync : 23:04:2023 - 00:06:15
Diffstat (limited to 'net-misc/rdesktop/files')
-rw-r--r-- | net-misc/rdesktop/files/rdesktop-1.9.0-configure-clang16.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net-misc/rdesktop/files/rdesktop-1.9.0-configure-clang16.patch b/net-misc/rdesktop/files/rdesktop-1.9.0-configure-clang16.patch new file mode 100644 index 000000000000..7222fdbb1e46 --- /dev/null +++ b/net-misc/rdesktop/files/rdesktop-1.9.0-configure-clang16.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/900310 +https://github.com/rdesktop/rdesktop/pull/407 + +From 0a38f855c2f6bb197539fbb9ec0ce5a97775a178 Mon Sep 17 00:00:00 2001 +From: Florian Weimer <fweimer@redhat.com> +Date: Tue, 18 Apr 2023 09:55:39 +0200 +Subject: [PATCH] configure.ac: Fix statvfs64 check for C99 compatibility + +C99 does not support implicit ints and implicit function declarations +(such as exit here). Avoid them, so that the configure check does +not fail unconditionally with such compilers. +--- a/configure.ac ++++ b/configure.ac +@@ -668,12 +668,13 @@ if test $space = no; then + # SVR4 + AC_CACHE_CHECK([statvfs64 function (SVR4)], fu_cv_sys_stat_statvfs64, + [AC_TRY_RUN([ ++#include <stdlib.h> + #if defined(HAVE_UNISTD_H) + #include <unistd.h> + #endif + #include <sys/types.h> + #include <sys/statvfs.h> +- main () ++ int main (void) + { + struct statvfs64 fsd; + exit (statvfs64 (".", &fsd)); |