From a3f661cb664247aec12ad3ec8c80800240e4d600 Mon Sep 17 00:00:00 2001 From: frosch Date: Fri, 15 Sep 2023 10:26:03 +0200 Subject: [PATCH] Fix: compilation failed on gcc 10.2 due to missing include. (#11300) '_exit' is defined in 'unistd.h'. --- src/os/unix/crashlog_unix.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/os/unix/crashlog_unix.cpp b/src/os/unix/crashlog_unix.cpp index dbe4849afb..f232bd121c 100644 --- a/src/os/unix/crashlog_unix.cpp +++ b/src/os/unix/crashlog_unix.cpp @@ -23,10 +23,6 @@ # include #endif -#if defined(__NetBSD__) -#include -#endif - #ifdef WITH_UNOFFICIAL_BREAKPAD # include #endif @@ -35,6 +31,8 @@ # include /* We avoid abort(), as it is a SIGBART, and use _exit() instead. But emscripten doesn't know _exit(). */ # define _exit emscripten_force_exit +#else +#include #endif #include "../../safeguards.h"