See
http://developer.apple.com/library/mac/documentation/Darwin/Reference/Man...
Signed-off-by: Masami HIRATA <msmhrt(a)gmail.com>
---
src/guestfs-internal.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index 5a2e9ba..3752606 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -76,7 +76,11 @@
char var[strlen (ttos_tmpdir) + 32]; \
sprintf (var, "%s/libguestfsXXXXXX", ttos_tmpdir) \
+#ifdef __APPLE__
+#define UNIX_PATH_MAX 104
+#else
#define UNIX_PATH_MAX 108
+#endif
#ifndef MAX
#define MAX(a,b) ((a)>(b)?(a):(b))
--
1.7.11.1