From 9f07090763d59d57c1be3d6da90b5563a08b0930 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Thu, 23 Oct 2003 12:28:44 +0000 Subject: [PATCH] Fixes from Lode to make it work on Cygwin. (Logical change 1.211) --- libntfs/win32_io.c | 5 +++++ ntfsprogs/utils.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/libntfs/win32_io.c b/libntfs/win32_io.c index 9ae868d8..a8a1495c 100644 --- a/libntfs/win32_io.c +++ b/libntfs/win32_io.c @@ -33,13 +33,18 @@ * define our own... */ typedef long long int s64; +typedef unsigned long int u32; struct flock; struct stat; +struct ntfs_volume; +typedef struct ntfs_volume ntfs_volume; #include "config.h" /* Need device, but prevent ../include/types.h to be loaded. */ #define _NTFS_TYPES_H +#define _NTFS_SUPPORT_H +#define _NTFS_VOLUME_H #include "device.h" #define FORCE_ALIGNED_READ diff --git a/ntfsprogs/utils.h b/ntfsprogs/utils.h index 66864154..0a97fb34 100644 --- a/ntfsprogs/utils.h +++ b/ntfsprogs/utils.h @@ -38,6 +38,10 @@ extern const char *ntfs_gpl; #define PATH_SEP '/' #define MAX_PATH 1024 +#ifndef REG_NOERROR +#define REG_NOERROR REG_OKAY +#endif + #define GEN_PRINTF(NAME, STREAM, CONTROL, TRIGGER) \ __attribute__ ((format (printf, 1, 2))) \ int NAME (const char *format, ...) \