From 6cecd0e726f3f6b2b067c1850df2dbaa9cbcbb65 Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Thu, 26 Feb 2004 11:41:48 +0000 Subject: [PATCH] Detect NO_NTFS_DEVICE_DEFAULT_IO_OPS and #error appropriately. (Logical change 1.283) --- ntfsprogs/mkntfs.c | 6 ++++++ ntfsprogs/ntfsfix.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ntfsprogs/mkntfs.c b/ntfsprogs/mkntfs.c index 94463a62..82e837e8 100644 --- a/ntfsprogs/mkntfs.c +++ b/ntfsprogs/mkntfs.c @@ -125,6 +125,12 @@ #include "runlist.h" #include "utils.h" +#ifdef NO_NTFS_DEVICE_DEFAULT_IO_OPS +# error "No default device io operations! Cannot build mkntfs. \ +You need to run ./configure without the --disable-default-device-io-ops \ +switch if you want to be able to build the NTFS utilities." +#endif + extern const unsigned char attrdef_ntfs12_array[2400]; extern const unsigned char boot_array[3429]; extern void init_system_file_sd(int sys_file_no, char **sd_val, diff --git a/ntfsprogs/ntfsfix.c b/ntfsprogs/ntfsfix.c index bf47e721..66550a01 100644 --- a/ntfsprogs/ntfsfix.c +++ b/ntfsprogs/ntfsfix.c @@ -58,6 +58,12 @@ #include "device.h" #include "logfile.h" +#ifdef NO_NTFS_DEVICE_DEFAULT_IO_OPS +# error "No default device io operations! Cannot build ntfsfix. \ +You need to run ./configure without the --disable-default-device-io-ops \ +switch if you want to be able to build the NTFS utilities." +#endif + /** * main */