DM: use standard offsetof to avoid duplicate definition
Acked-by: Anthony Xu
#include <pthread.h>
#include <string.h>
#include <assert.h>
+#include <stddef.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
# define RTC_DEBUG(format, ...) do { } while (0)
#endif
-#define offsetof(type, member) ((size_t)(&((type *)0)->member))
-
/* Register layout of the RTC */
struct rtcdev {
uint8_t sec;
