src/cloner: use btrfs/ioctl.h header if present
authorDavid Disseldorp <ddiss@suse.de>
Tue, 18 Feb 2014 06:18:42 +0000 (17:18 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 18 Feb 2014 06:18:42 +0000 (17:18 +1100)
commit678fd164cbbbcef53d589f90a1b918e90eb65fa9
tree333b528121a650555bf63874860a336208366001
parentdb5adddbb0ae64b4788eed4b5634b611ffe6763b
src/cloner: use btrfs/ioctl.h header if present

Check for the btrfsprogs-devel ioctl.h header at configure time. Use it
in src/cloner if present, otherwise fall back to using the copied clone
ioctl definitions.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
configure.ac
src/cloner.c