Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/thread_design.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* How to exploit the wonders of libevhtp's threading model to avoid using
* libevent's locking API.
*
* In this example we use Redis's Async API (Libhiredis) store and retr the following
* In this example we use Redis's Async API (Libhiredis) store and retry the following
* information for a request:
*
* Total requests seen.
Expand Down
4 changes: 4 additions & 0 deletions include/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ extern "C" {
# define evhtp_unlikely(x) (x)
#endif

#if defined __APPLE__
# define mempcpy(...) memcpy(__VA_ARGS__)
#endif

#ifndef TAILQ_FOREACH_SAFE
#define TAILQ_FOREACH_SAFE(var, head, field, tvar) \
for ((var) = TAILQ_FIRST((head)); \
Expand Down