From bea5bc98e31d2367c6ae4e16279a206df494ae4a Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 28 Oct 2022 02:36:33 +0200 Subject: Workarounded Ruby bug. Ruby redefines memcpy(3) in public headers. Or at least they did until they fixed it 4 months ago. We need to undefine their broken definition. Link: Signed-off-by: Alejandro Colomar --- src/nxt_string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/nxt_string.h b/src/nxt_string.h index 41f7c238..c27ff63d 100644 --- a/src/nxt_string.h +++ b/src/nxt_string.h @@ -8,6 +8,10 @@ #define _NXT_STRING_H_INCLUDED_ +/* Workaround for Ruby bug #18893 */ +#undef memcpy + + #define nxt_lowcase(c) \ (u_char) ((c >= 'A' && c <= 'Z') ? c | 0x20 : c) -- cgit