diff options
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/brk.c | 2 | ||||
-rw-r--r-- | src/linux/clone.c | 2 | ||||
-rw-r--r-- | src/linux/sbrk.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/linux/brk.c b/src/linux/brk.c index ffdbbd52..a6173e07 100644 --- a/src/linux/brk.c +++ b/src/linux/brk.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE +#include <unistd.h> #include <errno.h> #include "syscall.h" diff --git a/src/linux/clone.c b/src/linux/clone.c index b9e55945..8c1af7d3 100644 --- a/src/linux/clone.c +++ b/src/linux/clone.c @@ -1,5 +1,7 @@ +#define _GNU_SOURCE #include <stdarg.h> #include <unistd.h> +#include <sched.h> #include "pthread_impl.h" #include "syscall.h" diff --git a/src/linux/sbrk.c b/src/linux/sbrk.c index 1e82d643..bb866305 100644 --- a/src/linux/sbrk.c +++ b/src/linux/sbrk.c @@ -1,3 +1,5 @@ +#define _BSD_SOURCE +#include <unistd.h> #include <stdint.h> #include <errno.h> #include "syscall.h" |