Fixed ioctl() error return for ntfsclone on Windows

The ioctl() function is not implemented in the Windows variant. By forcing
a negative apparent return, an alternative is triggered to get the
partition size which is normally obtained from an ioctl().
edge.strict_endians
Jean-Pierre André 2014-04-12 09:14:08 +02:00
parent fd93d8e840
commit f3c4c6c604
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ int setmode(int, int); /* from msvcrt.dll */
#define srandom(seed) srand(seed)
#define random() rand()
#define fsync(fd) (0)
#define ioctl(fd,code,buf) (0)
#define ioctl(fd,code,buf) (-1)
#define ftruncate(fd, size) ntfs_device_win32_ftruncate(dev_out, size)
#define BINWMODE "wb"
#else