diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-06-27 21:17:06 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-06-27 21:17:06 +0000 |
commit | 22b838bbfd9aed996f101a557621c6815615653d (patch) | |
tree | dffe8b2d7f34d14c06743503e0d973a2372c8d90 /SDKs | |
parent | 134da448d092f82bfd5ddcdfa203c5c652c51474 (diff) |
Add 'errno.h' to the Darwin SDK.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185104 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'SDKs')
-rw-r--r-- | SDKs/darwin/usr/include/errno.h | 17 | ||||
-rw-r--r-- | SDKs/darwin/usr/include/sys/errno.h | 31 |
2 files changed, 48 insertions, 0 deletions
diff --git a/SDKs/darwin/usr/include/errno.h b/SDKs/darwin/usr/include/errno.h new file mode 100644 index 000000000..f06e53713 --- /dev/null +++ b/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/SDKs/darwin/usr/include/sys/errno.h b/SDKs/darwin/usr/include/sys/errno.h new file mode 100644 index 000000000..4befe3855 --- /dev/null +++ b/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 |