Fix compile on older systems that don't have fallocate() on Linux
authorJens Axboe <jaxboe@fusionio.com>
Tue, 12 Jul 2011 18:49:46 +0000 (20:49 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 12 Jul 2011 18:49:46 +0000 (20:49 +0200)
commit804bb9a18bb747c8c7c481c9d8dca86a29837ecd
treed26ef774cd95924bbe732094b2bc54f4d37ea442
parent7bb591020669b7266c57108f2a68b48a03ae72ee
Fix compile on older systems that don't have fallocate() on Linux

Commit a596f047 broke build en eg CentOS 5:

filesetup.c:17:26: error: linux/falloc.h: No such file or directory
filesetup.c: In function 'extend_file':
filesetup.c:95: warning: implicit declaration of function 'fallocate'
filesetup.c:95: error: 'FALLOC_FL_KEEP_SIZE' undeclared (first use in this function)
filesetup.c:95: error: (Each undeclared identifier is reported only once
filesetup.c:95: error: for each function it appears in.)
make: *** [filesetup.o] Error 1

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
helpers.c
helpers.h
os/os-linux.h