Skip to content

Commit

Permalink
[libunwind] Move errno.h and signal.h includes under the block where …
Browse files Browse the repository at this point in the history
…they're needed (#78054)

Commit fc1c478 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.
  • Loading branch information
ldionne committed Jan 16, 2024
1 parent e7671bc commit c1a4424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libunwind/src/UnwindCursor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit c1a4424

Please sign in to comment.