[libc] Fix overlay mode inclusion for fcntl.h header. (#119159)
This commit is contained in:
parent
be2df95e92
commit
44c645fcc9
@ -20,6 +20,11 @@
|
||||
// `__USE_FORTIFY_LEVEL`, which will be temporarily disabled
|
||||
// with `_FORTIFY_SOURCE`.
|
||||
|
||||
#ifdef _FORTIFY_SOURCE
|
||||
#define LIBC_OLD_FORTIFY_SOURCE _FORTIFY_SOURCE
|
||||
#undef _FORTIFY_SOURCE
|
||||
#endif
|
||||
|
||||
#ifdef __USE_FORTIFY_LEVEL
|
||||
#define LIBC_OLD_USE_FORTIFY_LEVEL __USE_FORTIFY_LEVEL
|
||||
#undef __USE_FORTIFY_LEVEL
|
||||
@ -28,6 +33,11 @@
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifdef LIBC_OLD_FORTIFY_SOURCE
|
||||
#define _FORTIFY_SOURCE LIBC_OLD_FORTIFY_SOURCE
|
||||
#undef LIBC_OLD_FORTIFY_SOURCE
|
||||
#endif
|
||||
|
||||
#ifdef LIBC_OLD_USE_FORTIFY_LEVEL
|
||||
#undef __USE_FORTIFY_LEVEL
|
||||
#define __USE_FORTIFY_LEVEL LIBC_OLD_USE_FORTIFY_LEVEL
|
||||
|
@ -51,6 +51,8 @@ add_proxy_header_library(
|
||||
struct_flock
|
||||
HDRS
|
||||
struct_flock.h
|
||||
DEPENDS
|
||||
libc.hdr.fcntl_overlay
|
||||
FULL_BUILD_DEPENDS
|
||||
libc.include.llvm-libc-types.struct_flock
|
||||
)
|
||||
@ -59,6 +61,8 @@ add_proxy_header_library(
|
||||
struct_flock64
|
||||
HDRS
|
||||
struct_flock64.h
|
||||
DEPENDS
|
||||
libc.hdr.fcntl_overlay
|
||||
FULL_BUILD_DEPENDS
|
||||
libc.include.llvm-libc-types.struct_flock64
|
||||
)
|
||||
@ -67,6 +71,8 @@ add_proxy_header_library(
|
||||
struct_f_owner_ex
|
||||
HDRS
|
||||
struct_f_owner_ex.h
|
||||
DEPENDS
|
||||
libc.hdr.fcntl_overlay
|
||||
FULL_BUILD_DEPENDS
|
||||
libc.include.llvm-libc-types.struct_f_owner_ex
|
||||
)
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#else
|
||||
|
||||
#include <fcntl.h>
|
||||
#include "hdr/fcntl_overlay.h"
|
||||
|
||||
#endif // LIBC_FULL_BUILD
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#else
|
||||
|
||||
#include <fcntl.h>
|
||||
#include "hdr/fcntl_overlay.h"
|
||||
|
||||
#endif // LIBC_FULL_BUILD
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#else
|
||||
|
||||
#include <fcntl.h>
|
||||
#include "hdr/fcntl_overlay.h"
|
||||
|
||||
#endif // LIBC_FULL_BUILD
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user