From b155b3ef816f5c317240dea88956bff733bfaef9 Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Thu, 6 Sep 2018 13:56:13 -0400
Subject: [PATCH] file_sys/nca_patch: Remove unnecessary includes

romfs.h doesn't need to be included in the header, the only real
dependency here is common's swap.h that needs to be included.
---
 src/core/file_sys/nca_patch.cpp | 4 ++++
 src/core/file_sys/nca_patch.h   | 7 +++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/core/file_sys/nca_patch.cpp b/src/core/file_sys/nca_patch.cpp
index e0111bffc4..4836706bb7 100644
--- a/src/core/file_sys/nca_patch.cpp
+++ b/src/core/file_sys/nca_patch.cpp
@@ -2,6 +2,10 @@
 // Licensed under GPLv2 or any later version
 // Refer to the license.txt file included.
 
+#include <algorithm>
+#include <cstddef>
+#include <cstring>
+
 #include "common/assert.h"
 #include "core/crypto/aes_util.h"
 #include "core/file_sys/nca_patch.h"
diff --git a/src/core/file_sys/nca_patch.h b/src/core/file_sys/nca_patch.h
index 0d9ad95f53..381f3504fb 100644
--- a/src/core/file_sys/nca_patch.h
+++ b/src/core/file_sys/nca_patch.h
@@ -5,10 +5,13 @@
 #pragma once
 
 #include <array>
+#include <memory>
 #include <vector>
-#include <common/common_funcs.h>
+
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+#include "common/swap.h"
 #include "core/crypto/key_manager.h"
-#include "core/file_sys/romfs.h"
 
 namespace FileSys {
 
-- 
GitLab