summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@nginx.com>2022-10-28 02:36:33 +0200
committerAlejandro Colomar <alx@nginx.com>2022-11-16 13:09:18 +0100
commit270f45d5c737d0f62978bdfec1803677d0f3e6c1 (patch)
tree1b7e69c0c9aaab859086a7ae84ff6f8a0ab6c2f1
parent4c7e1ee46506cdb63523b04a828fbdaa73743ddf (diff)
downloadunit-270f45d5c737d0f62978bdfec1803677d0f3e6c1.tar.gz
unit-270f45d5c737d0f62978bdfec1803677d0f3e6c1.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>
Diffstat (limited to '')
-rw-r--r--src/nxt_string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_string.h b/src/nxt_string.h
index 18ea5490..3e4a7be2 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)