summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ifuse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 4741e5e..c978135 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -42,6 +42,11 @@
#include <libimobiledevice/lockdown.h>
#include <libimobiledevice/afc.h>
+/* FreeBSD and others don't have ENODATA, so let's fake it */
+#ifndef ENODATA
+#define ENODATA EIO
+#endif
+
/* assume this is the default block size */
int g_blocksize = 4096;