From 75618202df285dc21364f4e52bafe37b8dc37dec Mon Sep 17 00:00:00 2001
From: Brian Carrier <carrier@sleuthkit.org>
Date: Wed, 1 Oct 2008 17:58:02 +0000
Subject: [PATCH] Added ifndef around TSK_USE_HFS

---
 CHANGES.txt        | 3 +++
 tsk3/fs/tsk_fs_i.h | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/CHANGES.txt b/CHANGES.txt
index 142708cda..9e70af58d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -68,6 +68,9 @@ Reported by Phil Peacock.
 9/25/08: Bug Fix: Added O_BINARY to open() in raw and split because Cygwin
 was having problems. Reported by Mark Stam.
 
+10/1/08: Update: Added ifndef to TSK_USE_HFS define to allow people
+to define it on the command line.  Patch by RB.
+
 
 ---------------- VERSION 2.52 --------------
 2/12/08: Bug Fix: Fixed warning messages in mactime about non-Numeric
diff --git a/tsk3/fs/tsk_fs_i.h b/tsk3/fs/tsk_fs_i.h
index 40b6698b7..d3017b419 100644
--- a/tsk3/fs/tsk_fs_i.h
+++ b/tsk3/fs/tsk_fs_i.h
@@ -52,7 +52,9 @@ extern "C" {
 #endif
 
 // set to 1 to open HFS+ file systems -- which is not fully tested
+#ifndef TSK_USE_HFS
 #define TSK_USE_HFS 0
+#endif
 
 
 #ifndef NBBY
-- 
GitLab