diff options
author | Michael Brown <mcb30@ipxe.org> | 2023-01-28 15:36:23 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-01-28 17:22:25 +0000 |
commit | 91944c6341550e5eec6d38739b0107025e15b776 (patch) | |
tree | 939949795cd029442ab1c1195c007fb72285b5c2 | |
parent | dac41fc4ecace4d6ccad7f56aab8685f5f96959f (diff) | |
download | ipxe-91944c6341550e5eec6d38739b0107025e15b776.tar.gz |
[efi] Allow for whitespace before #include in imported EDK2 header files
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rwxr-xr-x | src/include/ipxe/efi/import.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/efi/import.pl b/src/include/ipxe/efi/import.pl index 7177768a7..ec986025d 100755 --- a/src/include/ipxe/efi/import.pl +++ b/src/include/ipxe/efi/import.pl @@ -67,7 +67,7 @@ sub try_import_file { s/\s*$//g; chomp; # Update include lines, and record included files - if ( s/^\#include\s+[<\"](\S+)[>\"]/\#include <ipxe\/efi\/$1>/ ) { + if ( s/^(\s*\#include\s+)[<\"](\S+)[>\"]/$1<ipxe\/efi\/$2>/ ) { push @dependencies, $1; } # Check for BSD licence statement |