public inbox for powertop@lists.linux.dev
 help / color / mirror / Atom feed
From: Rosen Penev <rosenp at gmail.com>
To: powertop@lists.01.org
Subject: [Powertop] [PATCH] src/main: Add missing pthread header
Date: Thu, 28 Mar 2019 21:09:26 -0700	[thread overview]
Message-ID: <20190329040926.18563-1-rosenp@gmail.com> (raw)

[-- 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


             reply	other threads:[~2019-03-29  4:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-29  4:09 Rosen Penev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-03-29 21:40 [Powertop] [PATCH] src/main: Add missing pthread header Kammela, Gayatri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190329040926.18563-1-rosenp@gmail.com \
    --to=powertop@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox