mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-27 12:04:24 +00:00
page-read: Fix compilation on older distros
SEEK_DATA appeared quite recently, define it if not present in system headers. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
de5fc0d1e9
commit
55b96d0113
1 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,11 @@
|
|||
#include "protobuf.h"
|
||||
#include "protobuf/pagemap.pb-c.h"
|
||||
|
||||
#ifndef SEEK_DATA
|
||||
#define SEEK_DATA 3
|
||||
#define SEEK_HOLE 4
|
||||
#endif
|
||||
|
||||
static int get_page_vaddr(struct page_read *pr, struct iovec *iov)
|
||||
{
|
||||
int ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue