File tree Expand file tree Collapse file tree 5 files changed +35
-2
lines changed Expand file tree Collapse file tree 5 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -181,3 +181,12 @@ add_proxy_header_library(
181
181
libc.include.signal
182
182
)
183
183
184
+ add_proxy_header_library (
185
+ stack_t
186
+ HDRS
187
+ stack_t.h
188
+ FULL_BUILD_DEPENDS
189
+ libc.include.llvm-libc-types.stack_t
190
+ libc.include.signal
191
+ )
192
+
Original file line number Diff line number Diff line change
1
+ //===-- Definition of stack_t.h -------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https:llvm.or/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ //
8
+ //===----------------------------------------------------------------------===//
9
+
10
+ #ifndef LLVM_LIBC_HDR_STACK_T_H
11
+ #define LLVM_LIBC_HDR_STACK_T_H
12
+
13
+ #ifdef LIBC_FULL_BUILD
14
+
15
+ #include "include/llvm-libc-types/stack_t.h"
16
+
17
+ #else // overlay mode
18
+
19
+ #include <signal.h>
20
+
21
+ #endif // LLVM_LIBC_FULL_BUILD
22
+
23
+ #endif // LLVM_LIBC_HDR_TYPES_STACK_T_H
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ add_entrypoint_object(
77
77
libc.include.sys_syscall
78
78
libc.src.__support.OSUtil.osutil
79
79
libc.src.errno.errno
80
+ libc.hdr.types.stack_t
80
81
)
81
82
82
83
add_entrypoint_object (
Original file line number Diff line number Diff line change 7
7
// ===----------------------------------------------------------------------===//
8
8
9
9
#include " src/signal/sigaltstack.h"
10
+ #include " hdr/types/stack_t.h"
10
11
#include " src/__support/macros/config.h"
11
12
#include " src/errno/libc_errno.h"
12
13
#include " src/signal/linux/signal_utils.h"
13
14
14
15
#include " src/__support/common.h"
15
16
16
- #include < signal.h>
17
17
#include < sys/syscall.h>
18
18
19
19
namespace LIBC_NAMESPACE_DECL {
Original file line number Diff line number Diff line change 9
9
#ifndef LLVM_LIBC_SRC_SIGNAL_SIGALTSTACK_H
10
10
#define LLVM_LIBC_SRC_SIGNAL_SIGALTSTACK_H
11
11
12
+ #include " hdr/types/stack_t.h"
12
13
#include " src/__support/macros/config.h"
13
- #include < signal.h>
14
14
15
15
namespace LIBC_NAMESPACE_DECL {
16
16
You can’t perform that action at this time.
0 commit comments