Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 24 lines 714 B view raw
1Avoid spurious implicit int/implicit function declaration errors in the 2statvfs64 check (which still fails on Fedora; statvfs is used instead). 3 4Submitted upstream: <https://github.com/rdesktop/rdesktop/pull/407> 5 6diff --git a/configure.ac b/configure.ac 7index 1ab12a83b01f8a47..b5092b0f8cab520f 100644 8--- a/configure.ac 9+++ b/configure.ac 10@@ -668,12 +668,13 @@ if test $space = no; then 11 # SVR4 12 AC_CACHE_CHECK([statvfs64 function (SVR4)], fu_cv_sys_stat_statvfs64, 13 [AC_TRY_RUN([ 14+#include <stdlib.h> 15 #if defined(HAVE_UNISTD_H) 16 #include <unistd.h> 17 #endif 18 #include <sys/types.h> 19 #include <sys/statvfs.h> 20- main () 21+ int main (void) 22 { 23 struct statvfs64 fsd; 24 exit (statvfs64 (".", &fsd));