loggen: fix build vs. newer xfsprogs headers
authorJeff Layton <jlayton@poochiereds.net>
Thu, 15 May 2014 01:34:56 +0000 (11:34 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 15 May 2014 01:34:56 +0000 (11:34 +1000)
commit85a011724ae98fd1e5386c52479110e551f16ba3
treea8c6881d2546441ebdea5abb80e105a9ff294976
parent10fd79a6fb2950caaa9e4d09f68bbd1a7aedf586
loggen: fix build vs. newer xfsprogs headers

v2: just include xfs/libxfs.h for the conftest prerequisites

commit cc085d770adb in xfsprogs removed some header files that are
included by loggen.c. Add an autoconf test that checks to see whether
xfs_log_format.h is present. If it is, include that instead of the
deprecated headers and add an alias for XFS_TRANS_MAGIC since that
value no longer exists.

With this patch, xfstests builds on both f20 and rawhide (f21) boxes.

Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
configure.ac
src/loggen.c