Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
AppPkg: fix webserver build for !Ia32/X64
Browse files Browse the repository at this point in the history
The WebServer application is not meant to be Ia32/X64 specific, and would
build for other architectures, if it wasn't for the
  #include <Register/Msr.h>
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 <[email protected]>
Cc: Jaben Carsey <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Leif Lindholm <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>
  • Loading branch information
Leif Lindholm committed Feb 4, 2019
1 parent 6c61ec4 commit 3e583d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions AppPkg/Applications/Sockets/WebServer/Mtrr.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <WebServer.h>
#include <Library/MtrrLib.h>
#include <Register/Msr.h>

#define VARIABLE_MTRR_VALID 0x800

Expand Down
1 change: 0 additions & 1 deletion AppPkg/Applications/Sockets/WebServer/WebServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include <Guid/EventGroup.h>

#include <Register/Msr.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
Expand Down

0 comments on commit 3e583d3

Please sign in to comment.