]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/kxld/kxld_util.h
xnu-2050.7.9.tar.gz
[apple/xnu.git] / libkern / kxld / kxld_util.h
index 9d5720f043a0377179350a39217f532515ce636d..0eb0f2f7a36987bf8273ede84a252a9157d732cb 100644 (file)
 #ifndef _KXLD_UTIL_H_
 #define _KXLD_UTIL_H_
 
-#include <mach/machine.h>
 #include <sys/types.h>
 #if KERNEL
     #include <libkern/kxld_types.h>
+    #include <mach/machine.h>
 #else
     #include <architecture/byte_order.h>
     #include "kxld_types.h"
+
+    /* Get machine.h from the kernel source so we can support all platforms
+     * that the kernel supports. Otherwise we're at the mercy of the host.
+     */
+    #include "../../osfmk/mach/machine.h"
 #endif
 
 /* 64-bit helpers */