]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: atomic: add string.h for memcpy() on ARM64
authorWilly Tarreau <w@1wt.eu>
Sun, 14 Jun 2020 06:06:55 +0000 (08:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 14 Jun 2020 06:08:13 +0000 (08:08 +0200)
As reported in issue #686, ARM64 build fails since the include files
reorganization. This is caused by the lack of string.h while a memcpy()
is present in __ha_cas_dw().

include/haproxy/atomic.h

index ca3f24f1bc09eb67810671f6ab627ad62f7ecd9f..3f26b6a458c8006909b39b3c48ef47bc70327855 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef _HAPROXY_ATOMIC_H
 #define _HAPROXY_ATOMIC_H
 
+#include <string.h>
+
 /* A few notes for the macros and functions here:
  *  - this file is painful to edit, most operations exist in 3 variants,
  *    no-thread, threads with gcc<4.7, threads with gcc>=4.7. Be careful when