Build fix: implicit declaration of function 'PERROR' on Solaris
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 11 Sep 2020 03:57:54 +0000 (23:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 15 Oct 2020 22:45:59 +0000 (18:45 -0400)
Solaris 10/11 CI builds complain that PERROR is not declared
in memstream.h. This addresses the warning on both platforms.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I09ce7cea216e075d0ef7256f738ea7400d193b6b

src/lib/lttng-ctl/filter/memstream.h

index af2a5a77382e96b9e8e7f52764988a84bcab534f..dce4e4d2ee82b510b4b89262adbfa840c0adc163 100644 (file)
@@ -32,6 +32,7 @@ FILE *lttng_fmemopen(void *buf, size_t size, const char *mode)
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <common/error.h>
 
 /*
  * Fallback for systems which don't have fmemopen. Copy buffer to a
This page took 0.026062 seconds and 4 git commands to generate.