mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-13 02:52:37 +00:00
Fix: compilation failed on gcc 10.2 due to missing include. (#11300)
'_exit' is defined in 'unistd.h'.
This commit is contained in:
parent
ba51a34b4c
commit
a3f661cb66
@ -23,10 +23,6 @@
|
|||||||
# include <execinfo.h>
|
# include <execinfo.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__NetBSD__)
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef WITH_UNOFFICIAL_BREAKPAD
|
#ifdef WITH_UNOFFICIAL_BREAKPAD
|
||||||
# include <client/linux/handler/exception_handler.h>
|
# include <client/linux/handler/exception_handler.h>
|
||||||
#endif
|
#endif
|
||||||
@ -35,6 +31,8 @@
|
|||||||
# include <emscripten.h>
|
# include <emscripten.h>
|
||||||
/* We avoid abort(), as it is a SIGBART, and use _exit() instead. But emscripten doesn't know _exit(). */
|
/* We avoid abort(), as it is a SIGBART, and use _exit() instead. But emscripten doesn't know _exit(). */
|
||||||
# define _exit emscripten_force_exit
|
# define _exit emscripten_force_exit
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../safeguards.h"
|
#include "../../safeguards.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user