Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 84add09

Browse files
author
Peter Jas
committed
code,pal: Removes unused headers.
`<typeinfo>` and `<errno.h>` were unused in `seh.cpp`. On FreeBSD, the `errno` macro was conflicting due to these stale inclusions. The exact cause is still unknown that how it is building on CI and only failing locally on clean FreeBSD 10.2 installation with Clang 3.5. Fixes #1091.
1 parent 66b24ad commit 84add09

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pal/src/exception/seh.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ Module Name:
1919
2020
--*/
2121

22-
#include <typeinfo>
2322
#include "pal/thread.hpp"
24-
#include "signal.hpp"
2523
#include "pal/handleapi.hpp"
2624
#include "pal/seh.hpp"
2725
#include "pal/dbgmsg.h"
@@ -30,18 +28,19 @@ Module Name:
3028
#include "pal/init.h"
3129
#include "pal/process.h"
3230
#include "pal/malloc.hpp"
31+
#include "signal.hpp"
3332

3433
#if HAVE_ALLOCA_H
3534
#include "alloca.h"
3635
#endif
3736

38-
#include <errno.h>
39-
#include <string.h>
4037
#if HAVE_MACH_EXCEPTIONS
4138
#include "machexception.h"
4239
#else
4340
#include <signal.h>
4441
#endif
42+
43+
#include <string.h>
4544
#include <unistd.h>
4645
#include <pthread.h>
4746
#include <stdlib.h>

0 commit comments

Comments
 (0)