Fix: ust-cancelstate: include string.h for strerror
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Dec 2021 19:43:06 +0000 (14:43 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Dec 2021 19:45:31 +0000 (14:45 -0500)
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 <mathieu.desnoyers@efficios.com>
Change-Id: Id5e29df184c1f24659e15bc16c73da01fc819905

src/lib/lttng-ust-common/ust-cancelstate.c

index 2805758b1f54508ec37701ef382f674ec3cb6df9..7835803bdc3271acbf932880800fa2c7cb02f9f9 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <pthread.h>
 #include <errno.h>
-#include <error.h>
+#include <string.h>
 #include <urcu/tls-compat.h>
 #include <lttng/ust-cancelstate.h>
 
This page took 0.025125 seconds and 4 git commands to generate.