]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/122: define _GNU_SOURCE when compiling test program
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 23 Mar 2016 06:37:32 +0000 (17:37 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 23 Mar 2016 06:37:32 +0000 (17:37 +1100)
This makes it so we don't get warnings about off64_t not being
defined when compiling the test program.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/122

index 758cb506a88a426fb10c61fff8225ab1cdbdeebf..dc28c56a9477a6e816b6d38747d7f5be491a2778 100755 (executable)
@@ -73,6 +73,7 @@ oprog=$tmp.get_structs
 progout=$tmp.output
 
 cat >$cprog <<EOF
+#define _GNU_SOURCE
 #include <stdio.h>
 EOF
 for hdr in /usr/include/xfs/xfs*.h; do