projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils: move ARRAY_SIZE from uloop to utils.h
[project/libubox.git]
/
uloop.c
diff --git
a/uloop.c
b/uloop.c
index
a28bce8
..
88e9c81
100644
(file)
--- a/
uloop.c
+++ b/
uloop.c
@@
-32,6
+32,7
@@
#include <stdbool.h>
#include "uloop.h"
#include <stdbool.h>
#include "uloop.h"
+#include "utils.h"
#ifdef USE_KQUEUE
#include <sys/event.h>
#ifdef USE_KQUEUE
#include <sys/event.h>
@@
-41,10
+42,6
@@
#endif
#include <sys/wait.h>
#endif
#include <sys/wait.h>
-
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-#endif
#define ULOOP_MAX_EVENTS 10
static struct list_head timeouts = LIST_HEAD_INIT(timeouts);
#define ULOOP_MAX_EVENTS 10
static struct list_head timeouts = LIST_HEAD_INIT(timeouts);