idevicebackup2: Update errno to device error mapping
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index a9450ae..6412fe2 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -56,6 +56,9 @@
#include <windows.h>
#include <conio.h>
#define sleep(x) Sleep(x*1000)
+#ifndef ELOOP
+#define ELOOP 114
+#endif
#else
#include <termios.h>
#include <sys/statvfs.h>
@@ -742,8 +745,18 @@
return -6;
case EEXIST:
return -7;
+ case ENOTDIR:
+ return -8;
+ case EISDIR:
+ return -9;
+ case ELOOP:
+ return -10;
+ case EIO:
+ return -11;
+ case ENOSPC:
+ return -15;
default:
- return -errno_value;
+ return -1;
}
}