0001-Fix-Add-missing-pthread.h-include.patch 829 B

1234567891011121314151617181920212223242526272829
  1. From c948391121f2eb411bc7d2049d96f267bfa643d8 Mon Sep 17 00:00:00 2001
  2. From: Michael Jeanson <mjeanson@efficios.com>
  3. Date: Mon, 5 Dec 2016 15:39:26 -0500
  4. Subject: [PATCH] Fix: Add missing pthread.h include
  5. Some libc like musl and uClibc requires explicit includes of pthread.h
  6. Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
  7. [Thomas: taken from lttng mailing list.]
  8. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  9. ---
  10. src/common/defaults.h | 1 +
  11. 1 file changed, 1 insertion(+)
  12. diff --git a/src/common/defaults.h b/src/common/defaults.h
  13. index 27f1ddc..37d222a 100644
  14. --- a/src/common/defaults.h
  15. +++ b/src/common/defaults.h
  16. @@ -20,6 +20,7 @@
  17. #ifndef _DEFAULTS_H
  18. #define _DEFAULTS_H
  19. +#include <pthread.h>
  20. #include <src/common/macros.h>
  21. /* Default unix group name for tracing. */
  22. --
  23. 2.7.4