]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/firehose/chunk_private.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / libkern / firehose / chunk_private.h
index ac3fbe92efdf81560c39bbb7b8bcdabe39835852..513fd208296d288173695c800e102a54ccf1cc3e 100644 (file)
@@ -64,6 +64,7 @@ typedef struct firehose_chunk_range_s {
        uint16_t fcr_length;
 } *firehose_chunk_range_t;
 
+#if __has_include(<os/atomic_private.h>)
 #if defined(KERNEL) || defined(OS_FIREHOSE_SPI)
 
 OS_ALWAYS_INLINE
@@ -181,6 +182,7 @@ firehose_chunk_tracepoint_end(firehose_chunk_t fc,
 #endif // OS_ATOMIC_HAS_STARVATION_FREE_RMW || !OS_ATOMIC_CONFIG_STARVATION_FREE_ONLY
 
 #endif // defined(KERNEL) || defined(OS_FIREHOSE_SPI)
+#endif // __has_include(<os/atomic_private.h>)
 
 __END_DECLS