crosstool-ng/packages/strace/4.5.18/140-statfs64-check.patch
Alexey Neyman e7deac3aad Switch comp.libs/tools and debug to new framework.
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08 10:57:56 -07:00

54 lines
1.6 KiB
Diff

diff -dur strace-4.5.16.orig/acinclude.m4 strace-4.5.16/acinclude.m4
--- strace-4.5.16.orig/acinclude.m4 2004-04-14 04:21:01.000000000 +0200
+++ strace-4.5.16/acinclude.m4 2007-07-14 19:25:25.000000000 +0200
@@ -210,6 +210,26 @@
fi
])
+dnl ### A macro to determine whether statfs64 is defined.
+AC_DEFUN([AC_STATFS64],
+[AC_MSG_CHECKING(for statfs64 in sys/(statfs|vfs).h)
+AC_CACHE_VAL(ac_cv_type_statfs64,
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef LINUX
+#include <linux/types.h>
+#include <sys/statfs.h>
+#else
+#include <sys/vfs.h>
+#endif]], [[struct statfs64 st;]])],[ac_cv_type_statfs64=yes],[ac_cv_type_statfs64=no])])
+AC_MSG_RESULT($ac_cv_type_statfs64)
+if test "$ac_cv_type_statfs64" = yes
+then
+ AC_DEFINE([HAVE_STATFS64], 1,
+[Define if statfs64 is available in sys/statfs.h or sys/vfs.h.])
+fi
+])
+
+
+
dnl ### A macro to determine if off_t is a long long
AC_DEFUN([AC_OFF_T_IS_LONG_LONG],
[AC_MSG_CHECKING(for long long off_t)
diff -dur strace-4.5.16.orig/configure.ac strace-4.5.16/configure.ac
--- strace-4.5.16.orig/configure.ac 2007-01-11 12:37:55.000000000 +0100
+++ strace-4.5.16/configure.ac 2007-07-14 19:25:25.000000000 +0200
@@ -169,6 +169,7 @@
struct stat.st_level,
struct stat.st_rdev])
AC_STAT64
+AC_STATFS64
AC_TYPE_SIGNAL
AC_TYPE_UID_T
diff -dur strace-4.5.16.orig/file.c strace-4.5.16/file.c
--- strace-4.5.16.orig/file.c 2007-01-15 21:25:52.000000000 +0100
+++ strace-4.5.16/file.c 2007-07-14 19:25:25.000000000 +0200
@@ -1636,7 +1636,7 @@
return 0;
}
-#ifdef LINUX
+#ifdef HAVE_STATFS64
static void
printstatfs64(tcp, addr)
struct tcb *tcp;