aboutsummaryrefslogtreecommitdiff
path: root/librt
diff options
context:
space:
mode:
authorGravatar Peter S. Mazinger <ps.m@gmx.net>2011-04-16 01:20:21 +0200
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:38 +0200
commitc28cabb17933d98c9046d4b2492e39757bbacf5a (patch)
tree0357aec448b18e219338dd25db9933c40f3cf5c4 /librt
parente21479da34bbe39fb9d99e2f6e323fd1a942d9cb (diff)
downloaduClibc-c28cabb17933d98c9046d4b2492e39757bbacf5a.tar.gz
uClibc-c28cabb17933d98c9046d4b2492e39757bbacf5a.tar.bz2
Reorder includes and include only what is necessary
Use param.h instead of MIN. Use stddef.h instead of offsetof. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'librt')
-rw-r--r--librt/timer_create.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/librt/timer_create.c b/librt/timer_create.c
index 9298a37c7..f52a36ff9 100644
--- a/librt/timer_create.c
+++ b/librt/timer_create.c
@@ -2,6 +2,7 @@
* timer_create.c - create a per-process timer.
*/
+#include <stddef.h>
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
@@ -13,10 +14,6 @@
#ifdef __NR_timer_create
-#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,
struct sigevent *, evp, kernel_timer_t *, ktimerid);