From ee3297311d998e7fbdc05c67dcb13adf8c023db4 Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Fri, 15 Jan 2010 09:33:54 +0100 Subject: [PATCH] utils.h: Fixed absent definition of MAX_PATH by copying the definition from libntfs's headers (dir.h). --- ntfsprogs/utils.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ntfsprogs/utils.h b/ntfsprogs/utils.h index c727415e..b863ebd2 100644 --- a/ntfsprogs/utils.h +++ b/ntfsprogs/utils.h @@ -105,6 +105,11 @@ static __inline__ const char *ntfs_libntfs_version(void) { return "ntfs-3g unknown version (TODO: find or create a way to extract ntfs-3g version from library)"; } +/* MAX_PATH definition was missing in ntfs-3g's headers. */ +#ifndef MAX_PATH +#define MAX_PATH 1024 +#endif + /** * linux-ntfs's ntfs_mbstoucs has different semantics, so we emulate it with * ntfs-3g's.