summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--payloads/libpayload/include/stddef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/payloads/libpayload/include/stddef.h b/payloads/libpayload/include/stddef.h
index fca66ed247..bb2971dd3a 100644
--- a/payloads/libpayload/include/stddef.h
+++ b/payloads/libpayload/include/stddef.h
@@ -14,6 +14,7 @@ typedef __SIZE_TYPE__ ssize_t;
#undef unsigned
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *) 0)->MEMBER)
+#define member_size(TYPE, MEMBER) (sizeof(((TYPE *) 0)->MEMBER))
/* Standard units. */
#define KiB (1<<10)