]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/pgo/profile_runtime_data.c
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / bsd / pgo / profile_runtime_data.c
index 3bfc33d966663873091458d413756035f6bb7a82..f6c506055153442d7d24f9003676364b1638e3e7 100644 (file)
@@ -1,5 +1,19 @@
+#include <mach/vm_param.h>
+
 /*
  * This tells compiler_rt not to include userspace-specific stuff writing
  * profile data to a file.
  */
 int __llvm_profile_runtime = 0;
+
+/* compiler-rt requires this.  It uses it to page-align
+ * certain things inside its buffers.
+ */
+
+extern int getpagesize(void);
+
+int
+getpagesize()
+{
+       return PAGE_SIZE;
+}