mirror of
https://github.com/darlinghq/darling-newlkm.git
synced 2024-12-04 18:06:43 +00:00
Fix OS log headers to allow trace_base.h to be included in libtrace
This commit is contained in:
parent
546c710045
commit
f34b59112a
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user