diff --git a/tiledb/sm/filesystem/hdfs_filesystem.cc b/tiledb/sm/filesystem/hdfs_filesystem.cc index 75eee420fa0..a4ce1dcde67 100644 --- a/tiledb/sm/filesystem/hdfs_filesystem.cc +++ b/tiledb/sm/filesystem/hdfs_filesystem.cc @@ -49,6 +49,8 @@ #include "tiledb/sm/misc/utils.h" #include "uri.h" +#include "hadoop/hdfs.h" + #include #include #include diff --git a/tiledb/sm/filesystem/hdfs_filesystem.h b/tiledb/sm/filesystem/hdfs_filesystem.h index 44ca198e4ac..899fbd884af 100644 --- a/tiledb/sm/filesystem/hdfs_filesystem.h +++ b/tiledb/sm/filesystem/hdfs_filesystem.h @@ -41,10 +41,13 @@ #include "tiledb/common/status.h" -#include "hadoop/hdfs.h" - using namespace tiledb::common; +// Declarations copied from hadoop/hdfs.h +// We do not include it here to avoid leaking it to consuming code. +struct hdfs_internal; +typedef struct hdfs_internal* hdfsFS; + namespace tiledb { namespace common::filesystem {