]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD/MINOR: regex: missing header
authorThierry FOURNIER <tfournier@arpalert.org>
Thu, 26 Nov 2015 18:33:54 +0000 (19:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Dec 2015 12:36:01 +0000 (13:36 +0100)
When HAProxy is compiled with pcre, strlen() is used, but <string.h>
is not included.

This patch must be backported in 1.6

include/common/regex.h

index 30a5e3fc7f771e0e6675046dbdefe2023595aec5..8a1703f8c72afa92df09b71db124a62415c97503 100644 (file)
@@ -23,6 +23,7 @@
 #define _COMMON_REGEX_H
 
 #include <stdlib.h>
+#include <string.h>
 
 #include <common/config.h>