]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: pattern: include errno.h
authorJerome Magnin <jmagnin@haproxy.com>
Fri, 17 Jan 2020 17:01:20 +0000 (18:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Jan 2020 17:30:06 +0000 (18:30 +0100)
Commit 3c79d4bdc introduced the use of errno in pattern.c without
including errno.h.
If we build haproxy without any option errno is not defined and the
build fails.

src/pattern.c

index 33e0e17f275d4345465d93b6c09d0f5380e41a88..90067cd2341e4561a767f8aee2b8737b4f25457d 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <ctype.h>
 #include <stdio.h>
+#include <errno.h>
 
 #include <common/config.h>
 #include <common/standard.h>