Commit 221867c5 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

criu: a few fixes to build on Alpine

Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 09a2afe0
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include "namespaces.h" #include "namespaces.h"
#include "pstree.h" #include "pstree.h"
#include "fault-injection.h" #include "fault-injection.h"
#include "syscall-codes.h"
#include "protobuf.h" #include "protobuf.h"
#include "images/fsnotify.pb-c.h" #include "images/fsnotify.pb-c.h"
...@@ -104,7 +105,7 @@ static void decode_handle(fh_t *handle, FhEntry *img) ...@@ -104,7 +105,7 @@ static void decode_handle(fh_t *handle, FhEntry *img)
static int open_by_handle(void *arg, int fd, int pid) static int open_by_handle(void *arg, int fd, int pid)
{ {
return open_by_handle_at(fd, arg, O_PATH); return syscall(__NR_open_by_handle_at, fd, arg, O_PATH);
} }
static char *alloc_openable(unsigned int s_dev, unsigned long i_ino, FhEntry *f_handle) static char *alloc_openable(unsigned int s_dev, unsigned long i_ino, FhEntry *f_handle)
......
...@@ -41,6 +41,19 @@ ...@@ -41,6 +41,19 @@
#include <stdlib.h> #include <stdlib.h>
#ifndef SIGEV_SIGNAL
#define SIGEV_SIGNAL 0 /* notify via signal */
#endif
#ifndef SIGEV_NONE
#define SIGEV_NONE 1 /* other notification: meaningless */
#endif
#ifndef SIGEV_THREAD
#define SIGEV_THREAD 2 /* deliver via thread creation */
#endif
#ifndef SIGEV_THREAD_ID
#define SIGEV_THREAD_ID 4 /* deliver to thread */
#endif
struct buffer { struct buffer {
char buf[PAGE_SIZE]; char buf[PAGE_SIZE];
char end; /* '\0' */ char end; /* '\0' */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment