diff options
| author | Alejandro Colomar <alx@nginx.com> | 2022-10-28 02:36:33 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2022-11-12 20:39:48 +0100 |
| commit | 44c24fe163b580a985cb11486f54191c437d3356 (patch) | |
| tree | 203b258f5972bbd0756711d70ff93f0f3ff067e1 | |
| parent | 04245f26f6f9dbca1bfb14ee084ba90ae91b5e07 (diff) | |
| download | unit-44c24fe163b580a985cb11486f54191c437d3356.tar.gz unit-44c24fe163b580a985cb11486f54191c437d3356.tar.bz2 | |
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: <https://bugs.ruby-lang.org/issues/18893>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
| -rw-r--r-- | src/nxt_string.h | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
