File tree Expand file tree Collapse file tree 5 files changed +19
-3
lines changed Expand file tree Collapse file tree 5 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 20
20
// `__USE_FORTIFY_LEVEL`, which will be temporarily disabled
21
21
// with `_FORTIFY_SOURCE`.
22
22
23
+ #ifdef _FORTIFY_SOURCE
24
+ #define LIBC_OLD_FORTIFY_SOURCE _FORTIFY_SOURCE
25
+ #undef _FORTIFY_SOURCE
26
+ #endif
27
+
23
28
#ifdef __USE_FORTIFY_LEVEL
24
29
#define LIBC_OLD_USE_FORTIFY_LEVEL __USE_FORTIFY_LEVEL
25
30
#undef __USE_FORTIFY_LEVEL
28
33
29
34
#include <fcntl.h>
30
35
36
+ #ifdef LIBC_OLD_FORTIFY_SOURCE
37
+ #define _FORTIFY_SOURCE LIBC_OLD_FORTIFY_SOURCE
38
+ #undef LIBC_OLD_FORTIFY_SOURCE
39
+ #endif
40
+
31
41
#ifdef LIBC_OLD_USE_FORTIFY_LEVEL
32
42
#undef __USE_FORTIFY_LEVEL
33
43
#define __USE_FORTIFY_LEVEL LIBC_OLD_USE_FORTIFY_LEVEL
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ add_proxy_header_library(
51
51
struct_flock
52
52
HDRS
53
53
struct_flock.h
54
+ DEPENDS
55
+ libc.hdr.fcntl_overlay
54
56
FULL_BUILD_DEPENDS
55
57
libc.include .llvm-libc-types.struct_flock
56
58
)
@@ -59,6 +61,8 @@ add_proxy_header_library(
59
61
struct_flock64
60
62
HDRS
61
63
struct_flock64.h
64
+ DEPENDS
65
+ libc.hdr.fcntl_overlay
62
66
FULL_BUILD_DEPENDS
63
67
libc.include .llvm-libc-types.struct_flock64
64
68
)
@@ -67,6 +71,8 @@ add_proxy_header_library(
67
71
struct_f_owner_ex
68
72
HDRS
69
73
struct_f_owner_ex.h
74
+ DEPENDS
75
+ libc.hdr.fcntl_overlay
70
76
FULL_BUILD_DEPENDS
71
77
libc.include .llvm-libc-types.struct_f_owner_ex
72
78
)
Original file line number Diff line number Diff line change 14
14
15
15
#else
16
16
17
- #include <fcntl.h>
17
+ #include "hdr/fcntl_overlay.h"
18
18
19
19
#endif // LIBC_FULL_BUILD
20
20
Original file line number Diff line number Diff line change 14
14
15
15
#else
16
16
17
- #include <fcntl.h>
17
+ #include "hdr/fcntl_overlay.h"
18
18
19
19
#endif // LIBC_FULL_BUILD
20
20
Original file line number Diff line number Diff line change 14
14
15
15
#else
16
16
17
- #include <fcntl.h>
17
+ #include "hdr/fcntl_overlay.h"
18
18
19
19
#endif // LIBC_FULL_BUILD
20
20
You can’t perform that action at this time.
0 commit comments