From dace20dcc98f90a931e88aa641f5633cdcf30c30 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 10 Jan 2011 13:11:24 +0000 Subject: linux-user: Add configure check for linux/fiemap.h and IOC_FS_FIEMAP Add a configure check for the existence of linux/fiemap.h and the IOC_FS_FIEMAP ioctl. This fixes a compilation failure on Linux systems which don't have that header file. Signed-off-by: Peter Maydell Signed-off-by: Aurelien Jarno --- linux-user/ioctls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-user/ioctls.h') diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 538e257..acff781 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -76,7 +76,7 @@ #ifdef FIGETBSZ IOCTL(FIGETBSZ, IOC_R, MK_PTR(TYPE_LONG)) #endif -#ifdef FS_IOC_FIEMAP +#ifdef CONFIG_FIEMAP IOCTL_SPECIAL(FS_IOC_FIEMAP, IOC_W | IOC_R, do_ioctl_fs_ioc_fiemap, MK_PTR(MK_STRUCT(STRUCT_fiemap))) #endif -- cgit v1.1