From bf40fa21292f08e66a274169ad1318e62fbc542b Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Thu, 2 May 2019 18:56:40 -0700 Subject: Replace dynamic macros with constants in memfd test. PiperOrigin-RevId: 246433167 Change-Id: Idb9b6c20ee1da193176288dfd2f9d85ec0e69c54 --- test/syscalls/linux/memfd.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/syscalls/linux/memfd.cc b/test/syscalls/linux/memfd.cc index 7e103124b..3494bcd13 100644 --- a/test/syscalls/linux/memfd.cc +++ b/test/syscalls/linux/memfd.cc @@ -38,8 +38,15 @@ namespace { // The header sys/memfd.h isn't available on all systems, so redefining some of // the constants here. #define F_LINUX_SPECIFIC_BASE 1024 + +#ifndef F_ADD_SEALS #define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9) +#endif /* F_ADD_SEALS */ + +#ifndef F_GET_SEALS #define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10) +#endif /* F_GET_SEALS */ + #define F_SEAL_SEAL 0x0001 #define F_SEAL_SHRINK 0x0002 #define F_SEAL_GROW 0x0004 -- cgit v1.2.3