summaryrefslogtreecommitdiff
path: root/librt/timer_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'librt/timer_create.c')
-rw-r--r--librt/timer_create.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/librt/timer_create.c b/librt/timer_create.c
index a49572792..cbd7bb615 100644
--- a/librt/timer_create.c
+++ b/librt/timer_create.c
@@ -13,7 +13,9 @@
#ifdef __NR_timer_create
-#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+#ifndef offsetof
+# define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+#endif
#define __NR___syscall_timer_create __NR_timer_create
static inline _syscall3(int, __syscall_timer_create, clockid_t, clock_id,