Skip to content

Commit cfde68a

Browse files
committed
Cherry-pick 6a9cb902ae25efa6f853dc10b20cd657b8a1f809
1 parent 6843600 commit cfde68a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libuv/include/uv-private/ngx-queue.h

+4
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,8 @@ struct ngx_queue_s {
9999
(type *) ((unsigned char *) q - offsetof(type, link))
100100

101101

102+
#define ngx_queue_foreach(q, h) \
103+
for ((q) = ngx_queue_head(h); (q) != (h); (q) = ngx_queue_next(q))
104+
105+
102106
#endif /* _NGX_QUEUE_H_INCLUDED_ */

0 commit comments

Comments
 (0)