mirror of
https://github.com/RGBCube/serenity
synced 2025-10-16 12:22:06 +00:00

Including signal.h would cause several ports to fail on build, because it would end up including AK/Platform.h through these mcontext headers. This is problematic because AK/Platform.h defines several macros with very common names, such as `NAKED` (breaks radare2), and `NO_SANITIZE_ADDRESS` and `ALWAYS_INLINE` (breaks ruby).
21 lines
287 B
C
21 lines
287 B
C
/*
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Kernel/API/POSIX/sys/types.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct __attribute__((packed)) __mcontext {
|
|
int stub;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|