You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
823 B

  1. From 7235a786ea30ae5ca7c1b3458ef5b2388c08dfd9 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Thu, 28 Mar 2019 18:44:27 -0700
  4. Subject: [PATCH] src/main: Add missing pthread header
  5. Otherwise compilation can fail with:
  6. main.cpp: In function 'void one_measurement(int, int, char*)':
  7. main.cpp:226:3: error: 'pthread_t' was not declared in this scope
  8. pthread_t thread = 0UL;
  9. ^~~~~~~~~
  10. main.cpp:226:3: note: suggested alternative: 'pread'
  11. pthread_t thread = 0UL;
  12. ^~~~~~~~~
  13. pread
  14. et al.
  15. Signed-off-by: Rosen Penev <rosenp@gmail.com>
  16. ---
  17. src/main.cpp | 1 +
  18. 1 file changed, 1 insertion(+)
  19. --- a/src/main.cpp
  20. +++ b/src/main.cpp
  21. @@ -39,6 +39,7 @@
  22. #include <locale.h>
  23. #include <sys/resource.h>
  24. #include <limits.h>
  25. +#include <pthread.h>
  26. #include "cpu/cpu.h"
  27. #include "process/process.h"