mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
drm-shim: Allow drm-shim to work with glibc fortify.
Signed-off-by: David Riley <davidriley@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18558>
This commit is contained in:
parent
e2eb1d083c
commit
4031c9428f
1 changed files with 7 additions and 0 deletions
|
|
@ -293,6 +293,13 @@ PUBLIC int open(const char *path, int flags, ...)
|
|||
}
|
||||
PUBLIC int open64(const char*, int, ...) __attribute__((alias("open")));
|
||||
|
||||
/* __open64_2 isn't declared unless _FORTIFY_SOURCE is defined. */
|
||||
PUBLIC int __open64_2(const char *path, int flags);
|
||||
PUBLIC int __open64_2(const char *path, int flags)
|
||||
{
|
||||
return open(path, flags, 0);
|
||||
}
|
||||
|
||||
PUBLIC int close(int fd)
|
||||
{
|
||||
init_shim();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue