Fix OS log headers to allow trace_base.h to be included in libtrace

This commit is contained in:
Ariel Abreu 2020-06-08 22:03:25 -04:00
parent 546c710045
commit f34b59112a
No known key found for this signature in database
GPG Key ID: F4D43CC7053EA2B3
2 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,9 @@
#include <os/object.h>
#include <stdint.h>
#include <stdbool.h>
#ifdef DARLING
#include <os/trace.h>
#endif
#ifndef __has_attribute
#define __has_attribute(x) 0
@ -46,7 +49,9 @@
__BEGIN_DECLS
#ifndef DARLING
extern void *__dso_handle;
#endif
#ifdef XNU_KERNEL_PRIVATE
extern bool startup_serial_logging_active;

View File

@ -24,6 +24,9 @@
#ifndef __OS_TRACE_H__
#define __OS_TRACE_H__
#ifdef DARLING
#include <os/trace_base.h>
#endif
#include <Availability.h>
#include <os/base.h>
#include <sys/types.h>
@ -42,7 +45,9 @@ typedef void *xpc_object_t;
__BEGIN_DECLS
#ifndef DARLING
extern void *__dso_handle;
#endif
OS_ALWAYS_INLINE
static inline void