src/ntfs_io.c: fix ntfs_device_testdisk_io_ioctl() prototype for ntfs-3g
This commit is contained in:
parent
e6c21a9bb4
commit
2b0a0fcde8
1 changed files with 12 additions and 0 deletions
|
@ -159,6 +159,7 @@ static int ntfs_device_testdisk_io_stat(struct ntfs_device *dev, struct stat *bu
|
|||
return -1;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBNTFS
|
||||
static int ntfs_device_testdisk_io_ioctl(struct ntfs_device *dev, int request,
|
||||
void *argp)
|
||||
{
|
||||
|
@ -168,6 +169,17 @@ static int ntfs_device_testdisk_io_ioctl(struct ntfs_device *dev, int request,
|
|||
#endif
|
||||
return -1;
|
||||
}
|
||||
#else
|
||||
static int ntfs_device_testdisk_io_ioctl(struct ntfs_device *dev, unsigned long request,
|
||||
void *argp)
|
||||
{
|
||||
log_warning( "ntfs_device_testdisk_io_ioctl() unimplemented\n");
|
||||
#ifdef ENOTSUP
|
||||
errno = ENOTSUP;
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Device operations for working with unix style devices and files.
|
||||
|
|
Loading…
Reference in a new issue