mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-17 16:32:14 +08:00
[libc] including musl signal.h with _POSIX_SOURCE
This commit is contained in:
@@ -17,7 +17,17 @@ extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#ifdef RT_USING_MUSLLIBC
|
||||
/* this is require for musl <signal.h> */
|
||||
#ifndef _POSIX_SOURCE
|
||||
#define _POSIX_SOURCE
|
||||
#include <signal.h>
|
||||
/* limit influenced of _POSIX_SOURCE */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
#else /* ndef _POSIX_SOURCE */
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#include <stdint.h>
|
||||
|
Reference in New Issue
Block a user