From: Mathieu Desnoyers Date: Thu, 9 Dec 2021 19:43:06 +0000 (-0500) Subject: Fix: ust-cancelstate: include string.h for strerror X-Git-Tag: v2.12.3~1 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=7beb5ba1d583df225e6306a927d5309d9e47294e;p=lttng-ust.git Fix: ust-cancelstate: include string.h for strerror strerror() is provided by string.h, not error.h. Also error.h is not present on FreeBSD, which causes the build to fail. Signed-off-by: Mathieu Desnoyers Change-Id: Id5e29df184c1f24659e15bc16c73da01fc819905 --- diff --git a/liblttng-ust-comm/ust-cancelstate.c b/liblttng-ust-comm/ust-cancelstate.c index 298ffcbe..0611ce25 100644 --- a/liblttng-ust-comm/ust-cancelstate.c +++ b/liblttng-ust-comm/ust-cancelstate.c @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include #include