powertop.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [Powertop] [PATCH] src/main: Add missing pthread header
@ 2019-03-29  4:09 Rosen Penev
  0 siblings, 0 replies; 2+ messages in thread
From: Rosen Penev @ 2019-03-29  4:09 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 740 bytes --]

Otherwise compilation can fail with:

main.cpp: In function 'void one_measurement(int, int, char*)':
main.cpp:226:3: error: 'pthread_t' was not declared in this scope
   pthread_t thread = 0UL;
   ^~~~~~~~~
main.cpp:226:3: note: suggested alternative: 'pread'
   pthread_t thread = 0UL;
   ^~~~~~~~~
   pread

et al.

Signed-off-by: Rosen Penev <rosenp(a)gmail.com>
---
 src/main.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main.cpp b/src/main.cpp
index cbb7a4e..75d4202 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -39,6 +39,7 @@
 #include <locale.h>
 #include <sys/resource.h>
 #include <limits.h>
+#include <pthread.h>
 
 #include "cpu/cpu.h"
 #include "process/process.h"
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Powertop] [PATCH] src/main: Add missing pthread header
@ 2019-03-29 21:40 Kammela, Gayatri
  0 siblings, 0 replies; 2+ messages in thread
From: Kammela, Gayatri @ 2019-03-29 21:40 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

Thanks, Applied!

> -----Original Message-----
> From: PowerTop [mailto:powertop-bounces(a)lists.01.org] On Behalf Of
> Rosen Penev
> Sent: Thursday, March 28, 2019 9:09 PM
> To: powertop(a)lists.01.org
> Subject: [Powertop] [PATCH] src/main: Add missing pthread header
> 
> Otherwise compilation can fail with:
> 
> main.cpp: In function 'void one_measurement(int, int, char*)':
> main.cpp:226:3: error: 'pthread_t' was not declared in this scope
>    pthread_t thread = 0UL;
>    ^~~~~~~~~
> main.cpp:226:3: note: suggested alternative: 'pread'
>    pthread_t thread = 0UL;
>    ^~~~~~~~~
>    pread
> 
> et al.
> 
> Signed-off-by: Rosen Penev <rosenp(a)gmail.com>
> ---
>  src/main.cpp | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/main.cpp b/src/main.cpp index cbb7a4e..75d4202 100644
> --- a/src/main.cpp
> +++ b/src/main.cpp
> @@ -39,6 +39,7 @@
>  #include <locale.h>
>  #include <sys/resource.h>
>  #include <limits.h>
> +#include <pthread.h>
> 
>  #include "cpu/cpu.h"
>  #include "process/process.h"
> --
> 2.17.1
> 
> _______________________________________________
> PowerTop mailing list
> PowerTop(a)lists.01.org
> https://lists.01.org/mailman/listinfo/powertop

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-29 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-29  4:09 [Powertop] [PATCH] src/main: Add missing pthread header Rosen Penev
2019-03-29 21:40 Kammela, Gayatri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).