mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
common: lock -- Sync function proto with syscalls
They are the same in meaning and may collide on building. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
parent
d82b621f97
commit
6a0ed5e128
1 changed files with 2 additions and 2 deletions
|
|
@ -18,8 +18,8 @@
|
|||
#else
|
||||
# include <unistd.h>
|
||||
# include <sys/syscall.h>
|
||||
static inline long sys_futex(void *addr1, int op, int val1,
|
||||
struct timespec *timeout, void *addr2, int val3)
|
||||
static inline long sys_futex (uint32_t *addr1, int op, uint32_t val1,
|
||||
struct timespec *timeout, uint32_t *addr2, uint32_t val3)
|
||||
{
|
||||
int rc = syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
|
||||
if (rc == -1) rc = -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue