public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] m4/ltp-xfs_quota.m4: fix xfs quota check
@ 2016-10-11  1:52 Xiao Yang
  2016-10-13 14:11 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Xiao Yang @ 2016-10-11  1:52 UTC (permalink / raw)
  To: ltp

Current check doesn't work since xfsprogs v4.5.0.
Undefined off64_t type leads to this issue, so we
need to define _GNU_SOURCE to make off64_t defined.

This has been broken by upstream xfsporgs-dev commmit

commit cb898f157f8410a03cf5f3400baa1df9e5eecd33
Author: Felix Janda <felix.janda@posteo.de>
Date: Fri Feb 5 08:34:06 2016 +1100

  linux.h: Use off64_t instead of loff_t

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 m4/ltp-xfs_quota.m4 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/m4/ltp-xfs_quota.m4 b/m4/ltp-xfs_quota.m4
index c9ee335..c23412a 100644
--- a/m4/ltp-xfs_quota.m4
+++ b/m4/ltp-xfs_quota.m4
@@ -24,6 +24,7 @@ dnl
 AC_DEFUN([LTP_CHECK_XFS_QUOTACTL],[dnl
 	AC_MSG_CHECKING([for XFS quota (xfs/xqm.h)])
 	AC_LINK_IFELSE([AC_LANG_SOURCE([
+#define _GNU_SOURCE
 #include <xfs/xqm.h>
 #include <sys/quota.h>
 int main(void) {
-- 
1.8.3.1




^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-18  0:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-11  1:52 [LTP] [PATCH] m4/ltp-xfs_quota.m4: fix xfs quota check Xiao Yang
2016-10-13 14:11 ` Cyril Hrubis
2016-10-13 19:46   ` Dave Chinner
2016-10-17  9:16     ` Cyril Hrubis
2016-10-18  0:04       ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox