summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/security/vboot/bootmode.c2
-rw-r--r--src/security/vboot/vboot_handoff.c7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/security/vboot/bootmode.c b/src/security/vboot/bootmode.c
index 1d6525f966..e6e53b6f33 100644
--- a/src/security/vboot/bootmode.c
+++ b/src/security/vboot/bootmode.c
@@ -13,6 +13,8 @@
* GNU General Public License for more details.
*/
+#define NEED_VB20_INTERNALS /* Peeking into vb2_shared_data */
+
#include <assert.h>
#include <bootmode.h>
#include <bootstate.h>
diff --git a/src/security/vboot/vboot_handoff.c b/src/security/vboot/vboot_handoff.c
index 047fcafb3d..ff938e15ce 100644
--- a/src/security/vboot/vboot_handoff.c
+++ b/src/security/vboot/vboot_handoff.c
@@ -13,11 +13,8 @@
* GNU General Public License for more details.
*/
-/* This needs to be pulled in first so that the handoff code below and
- * peek into the vb2 data structures. Additionally, vboot doesn't currently
- * include what it uses in its own headers. Provide the types it's after.
- * TODO: fix this necessity. */
-#define NEED_VB20_INTERNALS
+#define NEED_VB20_INTERNALS /* Peeking into vb2_shared_data */
+
#include <stddef.h>
#include <stdint.h>
#include <vb2_api.h>