]> git.ipfire.org Git - thirdparty/libarchive.git/commit
include linux/types.h on CentOS 5 in test_sparse_basic.c 46/head
authorTerrell Russell <terrellrussell@gmail.com>
Tue, 30 Jul 2013 18:52:24 +0000 (14:52 -0400)
committerTerrell Russell <terrellrussell@gmail.com>
Tue, 30 Jul 2013 18:52:24 +0000 (14:52 -0400)
commit299e8ea928ced60defdbc194fbb0aa285f5044b8
tree545d668a9f01194d1f5cba0885465622a257e9d1
parent4b5f6510f262ce30daf3d3ce3f1e36d3dd5a8159
include linux/types.h on CentOS 5 in test_sparse_basic.c

Was getting this error:

In file included from ....../libarchive-3.1.2/libarchive/test/test_sparse_basic.c:44:
/usr/include/linux/fiemap.h:15: error: expected specifier-qualifier-list before ‘__u64’
/usr/include/linux/fiemap.h:26: error: expected specifier-qualifier-list before ‘__u64’

From https://groups.google.com/forum/#!msg/libarchive-discuss/691PHz5ENOc/4OzXBevG75AJ I see that the <linux/types.h> file is not included.

This fixed the problem for me on CentOS 5.8.
It was not visible as an issue on CentOS 6.3 or Ubuntu 10 or 12.

This change did not appear to break those already functioning platforms.
libarchive/test/test_sparse_basic.c