[lttng-dev] [PATCH lttng-tools] Fix: Add missing pthread.h include
Jérémie Galarneau
jeremie.galarneau at efficios.com
Mon Jan 9 19:11:18 UTC 2017
Merged, thanks!
Jérémie
On 5 December 2016 at 15:39, Michael Jeanson <mjeanson at efficios.com> 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. */
> --
> 2.7.4
>
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list