0001-thread-Name-include-stdio.h-for-prctl-as-well.patch 750 B

12345678910111213141516171819202122232425262728
  1. From 36139b29cccae008c74924d81ea67d265327f7ac Mon Sep 17 00:00:00 2001
  2. From: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. Date: Mon, 26 Jan 2015 09:55:04 -0300
  4. Subject: [PATCH] thread/Name: include stdio.h for prctl as well
  5. We're still using snprintf so we need it, otherwise it leads to build
  6. failure.
  7. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  8. ---
  9. src/thread/Name.hxx | 1 +
  10. 1 file changed, 1 insertion(+)
  11. diff --git a/src/thread/Name.hxx b/src/thread/Name.hxx
  12. index 1576b3f..8d46d33 100644
  13. --- a/src/thread/Name.hxx
  14. +++ b/src/thread/Name.hxx
  15. @@ -26,6 +26,7 @@
  16. # include <stdio.h>
  17. #elif defined(HAVE_PRCTL)
  18. # include <sys/prctl.h>
  19. +# include <stdio.h>
  20. # ifdef PR_SET_NAME
  21. # define HAVE_THREAD_NAME
  22. # endif
  23. --
  24. 2.0.5