diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2024-01-16 10:31:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 10:31:01 -0500 |
commit | c1a442462d9d47f86392da7e7019ab218d7a3088 (patch) | |
tree | 2e88fb461d99fd09f88263f8ed6d93b6e2913fa3 /libunwind | |
parent | e7671bc9d6da20ed7ed5877bb3c43c373019886f (diff) | |
download | llvm-c1a442462d9d47f86392da7e7019ab218d7a3088.zip llvm-c1a442462d9d47f86392da7e7019ab218d7a3088.tar.gz llvm-c1a442462d9d47f86392da7e7019ab218d7a3088.tar.bz2 |
[libunwind] Move errno.h and signal.h includes under the block where they're needed (#78054)
Commit fc1c478709e3 added includes of <signal.h> and <errno.h> to
UnwindCursor.hpp. The library previously built on platforms where these
headers are not provided. These headers should be included only in the
case where they are actually needed, i.e. on Linux.
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/src/UnwindCursor.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwind/src/UnwindCursor.hpp b/libunwind/src/UnwindCursor.hpp index 8517d32..7753936 100644 --- a/libunwind/src/UnwindCursor.hpp +++ b/libunwind/src/UnwindCursor.hpp @@ -12,8 +12,6 @@ #define __UNWINDCURSOR_HPP__ #include "cet_unwind.h" -#include <errno.h> -#include <signal.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -35,6 +33,8 @@ #if defined(_LIBUNWIND_TARGET_LINUX) && \ (defined(_LIBUNWIND_TARGET_AARCH64) || defined(_LIBUNWIND_TARGET_RISCV) || \ defined(_LIBUNWIND_TARGET_S390X)) +#include <errno.h> +#include <signal.h> #include <sys/syscall.h> #include <sys/uio.h> #include <unistd.h> |