Snap for 16180994 from 70c0813d5ca7e4e28e895a225881d4c3aa18f5d8 to 26Q4-release Change-Id: I04437fb4dbdce7a047425f6213eb7b3c4af1417e
diff --git a/derive_classpath/derive_classpath_test.cpp b/derive_classpath/derive_classpath_test.cpp index 4b22e57..21646da 100644 --- a/derive_classpath/derive_classpath_test.cpp +++ b/derive_classpath/derive_classpath_test.cpp
@@ -38,12 +38,16 @@ #else #define __ANDROID_API_R__ 30 +#ifdef ANDROID_HOST_MUSL +#include <sys/mman.h> +#else #define __NR_memfd_create 319 int memfd_create(const char* name, unsigned int flags) { return syscall(__NR_memfd_create, name, flags); } #endif +#endif namespace android { namespace derive_classpath {