btrfs-progs: ci: fix libreiserfs build

The CI build fails with:

../include/misc.h:76:26: error: unknown type name ‘loff_t’; did you mean ‘off_t’?
   76 | int valid_offset(int fd, loff_t offset);
      |                          ^~~~~~
      |                          off_t

Add the right define that will bring the symbol.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2020-08-18 17:59:09 +02:00
parent 09252e76ae
commit e05111d11e

View File

@ -23,6 +23,9 @@ cd "$dir"
wget https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v${version}/reiserfsprogs-${version}.tar.xz
tar xf reiserfsprogs-${version}.tar.xz
cd reiserfsprogs-${version}
# Compilation fails as loff_t is not defined without the define
export CFLAGS
CFLAGS=-D_GNU_SOURCE
./configure --prefix=/usr
make all
sudo make install