Message ID | 151683800942.17051.13963517513340805990.stgit@magnolia (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tests/xfs/122 b/tests/xfs/122 index 671a77b..d836670 100755 --- a/tests/xfs/122 +++ b/tests/xfs/122 @@ -79,6 +79,11 @@ cat >$cprog <<EOF #define _GNU_SOURCE #include <stdio.h> EOF +# Certain headers must be included in a certain order... +for hdr in xfs.h xfs_types.h xfs_fs.h xfs_arch.h xfs_format.h; do + test -e "/usr/include/xfs/$hdr" && echo "#include <xfs/$hdr>" >> $cprog +done +# ...but be sure to pull in any new headers that might show up. for hdr in /usr/include/xfs/xfs*.h; do echo "#include <$(echo "$hdr" | sed -e 's|/usr/include/||g')>" >> $cprog done