diff --git a/examples/thread_design.c b/examples/thread_design.c index a337503..d5b2448 100644 --- a/examples/thread_design.c +++ b/examples/thread_design.c @@ -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. diff --git a/include/internal.h b/include/internal.h index 194823c..3afa84a 100644 --- a/include/internal.h +++ b/include/internal.h @@ -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)); \