futex: move required includes to header

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-12-17 00:00:00 +00:00
parent 89a981aaf2
commit ab6f733140
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,13 @@
#ifndef LKMC_FUTEX_H
#define LKMC_FUTEX_H
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <linux/futex.h>
#include <sys/syscall.h>
#include <unistd.h>
static int
lkmc_futex(int *uaddr, int futex_op, int val,
const struct timespec *timeout, int *uaddr2, int val3)