projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix scanf %c conversion wrongly storing a terminating null byte
[musl]
/
include
/
ucontext.h
diff --git
a/include/ucontext.h
b/include/ucontext.h
index
1121761
..
3bb776e
100644
(file)
--- a/
include/ucontext.h
+++ b/
include/ucontext.h
@@
-4,10
+4,12
@@
extern "C" {
#endif
+#include <features.h>
+
#include <signal.h>
-#if
def _GNU_SOURCE
-#define
ucontext __ucontext
+#if
defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+#define
NGREG (sizeof(gregset_t)/sizeof(greg_t))
#endif
struct __ucontext;