summaryrefslogtreecommitdiffstats
path: root/compiler-rt/SDKs/darwin
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-06-27 21:17:06 +0000
committerBill Wendling <isanbard@gmail.com>2013-06-27 21:17:06 +0000
commitbc922e5a5f470879221e3f811aa2e19dbaf75796 (patch)
treef65b210cd58bc1805ea2bb9f6e68c004d2924016 /compiler-rt/SDKs/darwin
parentba4b86d0742a9b6986135b8ceca0ead4a7d0d606 (diff)
downloadbcm5719-llvm-bc922e5a5f470879221e3f811aa2e19dbaf75796.tar.gz
bcm5719-llvm-bc922e5a5f470879221e3f811aa2e19dbaf75796.zip
Add 'errno.h' to the Darwin SDK.
llvm-svn: 185104
Diffstat (limited to 'compiler-rt/SDKs/darwin')
-rw-r--r--compiler-rt/SDKs/darwin/usr/include/errno.h17
-rw-r--r--compiler-rt/SDKs/darwin/usr/include/sys/errno.h31
2 files changed, 48 insertions, 0 deletions
diff --git a/compiler-rt/SDKs/darwin/usr/include/errno.h b/compiler-rt/SDKs/darwin/usr/include/errno.h
new file mode 100644
index 00000000000..f06e5371339
--- /dev/null
+++ b/compiler-rt/SDKs/darwin/usr/include/errno.h
@@ -0,0 +1,17 @@
+/* ===-- errno.h - stub SDK header for compiler-rt --------------------------===
+ *
+ * The LLVM Compiler Infrastructure
+ *
+ * This file is dual licensed under the MIT and the University of Illinois Open
+ * Source Licenses. See LICENSE.TXT for details.
+ *
+ * ===-----------------------------------------------------------------------===
+ *
+ * This is a stub SDK header file. This file is not part of the interface of
+ * this library nor an official version of the appropriate SDK header. It is
+ * intended only to stub the features of this header required by compiler-rt.
+ *
+ * ===-----------------------------------------------------------------------===
+ */
+
+#include <sys/errno.h>
diff --git a/compiler-rt/SDKs/darwin/usr/include/sys/errno.h b/compiler-rt/SDKs/darwin/usr/include/sys/errno.h
new file mode 100644
index 00000000000..4befe385535
--- /dev/null
+++ b/compiler-rt/SDKs/darwin/usr/include/sys/errno.h
@@ -0,0 +1,31 @@
+/* ===-- errno.h - stub SDK header for compiler-rt --------------------------===
+ *
+ * The LLVM Compiler Infrastructure
+ *
+ * This file is dual licensed under the MIT and the University of Illinois Open
+ * Source Licenses. See LICENSE.TXT for details.
+ *
+ * ===-----------------------------------------------------------------------===
+ *
+ * This is a stub SDK header file. This file is not part of the interface of
+ * this library nor an official version of the appropriate SDK header. It is
+ * intended only to stub the features of this header required by compiler-rt.
+ *
+ * ===-----------------------------------------------------------------------===
+ */
+
+#ifndef _SYS_ERRNO_H_
+#define _SYS_ERRNO_H_
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+extern int *__error(void);
+#define errno (*__error())
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif
OpenPOWER on IntegriCloud