From 3e583d345977eb9fda769aa3940ca186d190f757 Mon Sep 17 00:00:00 2001 From: Leif Lindholm Date: Thu, 1 Nov 2018 14:51:50 +0000 Subject: [PATCH] AppPkg: fix webserver build for !Ia32/X64 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The WebServer application is not meant to be Ia32/X64 specific, and would build for other architectures, if it wasn't for the #include in WebServer.h. Move that statement to Mtrr.c instead, which is the only consumer, and is already being filtered out for other architectures. Cc: Daryl McDaniel Cc: Jaben Carsey Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Jaben Carsey --- AppPkg/Applications/Sockets/WebServer/Mtrr.c | 1 + AppPkg/Applications/Sockets/WebServer/WebServer.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/AppPkg/Applications/Sockets/WebServer/Mtrr.c b/AppPkg/Applications/Sockets/WebServer/Mtrr.c index 54356bde64..4b8482d4e2 100644 --- a/AppPkg/Applications/Sockets/WebServer/Mtrr.c +++ b/AppPkg/Applications/Sockets/WebServer/Mtrr.c @@ -15,6 +15,7 @@ #include #include +#include #define VARIABLE_MTRR_VALID 0x800 diff --git a/AppPkg/Applications/Sockets/WebServer/WebServer.h b/AppPkg/Applications/Sockets/WebServer/WebServer.h index 21b07b63df..16c30c8d6d 100644 --- a/AppPkg/Applications/Sockets/WebServer/WebServer.h +++ b/AppPkg/Applications/Sockets/WebServer/WebServer.h @@ -20,7 +20,6 @@ #include -#include #include #include #include -- 2.39.2