[lttng-dev] [PATCH lttng-tools] Fix: Add missing pthread.h include
Michael Jeanson
mjeanson at efficios.com
Mon Dec 5 20:40:37 UTC 2016
This should be backported to stable-2.9.
On 2016-12-05 15:39, Michael Jeanson wrote:
> Some libc like musl and uClibc requires explicit includes of pthread.h
>
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> src/common/defaults.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/common/defaults.h b/src/common/defaults.h
> index 27f1ddc..37d222a 100644
> --- a/src/common/defaults.h
> +++ b/src/common/defaults.h
> @@ -20,6 +20,7 @@
> #ifndef _DEFAULTS_H
> #define _DEFAULTS_H
>
> +#include <pthread.h>
> #include <src/common/macros.h>
>
> /* Default unix group name for tracing. */
>
More information about the lttng-dev
mailing list