criu: fix aarch64-musl build

This commit is contained in:
Duncaen 2023-05-16 16:16:11 +02:00
parent efc9655aa1
commit 9d09e2481d
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
--- a/compel/arch/aarch64/src/lib/include/uapi/asm/sigframe.h
+++ b/compel/arch/aarch64/src/lib/include/uapi/asm/sigframe.h
@@ -1,7 +1,11 @@
#ifndef UAPI_COMPEL_ASM_SIGFRAME_H__
#define UAPI_COMPEL_ASM_SIGFRAME_H__
+#ifdef __GLIBC__
#include <asm/sigcontext.h>
+#else
+#include <linux/types.h>
+#endif
#include <sys/ucontext.h>
#include <stdint.h>
--- a/criu/arch/aarch64/include/asm/restorer.h
+++ b/criu/arch/aarch64/include/asm/restorer.h
@@ -1,7 +1,11 @@
#ifndef __CR_ASM_RESTORER_H__
#define __CR_ASM_RESTORER_H__
+#ifdef __GLIBC__
#include <asm/sigcontext.h>
+#else
+#include <linux/types.h>
+#endif
#include <sys/ucontext.h>
#include "asm/types.h"