summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Jacob Myers2010-06-12 00:46:29 -0400
committerGravatar Martin Szulecki2010-06-12 18:26:47 +0200
commit83bfd68786a7aa77ca9b493e1c50fdd212d2dd26 (patch)
treeb53902e8c5c06b3ba6e3a879718989d3b80670b7 /src/ifuse.c
parent338238576aceafaac1380dbbef0f2d4db666be0b (diff)
downloadifuse-83bfd68786a7aa77ca9b493e1c50fdd212d2dd26.tar.gz
ifuse-83bfd68786a7aa77ca9b493e1c50fdd212d2dd26.tar.bz2
FreeBSD doesn't have ENODATA, so fake it as EIO if not defined.
Diffstat (limited to 'src/ifuse.c')
-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;