Fix includes for the OE Pal.

The Pal should include address.h, this was masked as other Pals included
it, but are only included for simulating OE scenarios, rather than
the actual build for OE.
This commit is contained in:
Matthew Parkinson
2020-05-27 10:50:11 +01:00
committed by Matthew Parkinson
parent de0ab1dbe0
commit 2c9ab3096d
2 changed files with 4 additions and 3 deletions

View File

@@ -3,6 +3,9 @@
#include "pal_consts.h"
// If simultating OE, then we need the underlying platform
#if defined(OPEN_ENCLAVE)
# include "pal_open_enclave.h"
#endif
#if !defined(OPEN_ENCLAVE) || defined(OPEN_ENCLAVE_SIMULATION)
# include "pal_apple.h"
# include "pal_freebsd.h"
@@ -12,9 +15,6 @@
# include "pal_openbsd.h"
# include "pal_windows.h"
#endif
#if defined(OPEN_ENCLAVE)
# include "pal_open_enclave.h"
#endif
#include "pal_plain.h"
namespace snmalloc

View File

@@ -1,5 +1,6 @@
#pragma once
#include "ds/address.h"
#include "pal_plain.h"
#ifdef OPEN_ENCLAVE
extern "C" const void* __oe_get_heap_base();