All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreea-Cristina Bernat <bernat.ada@gmail.com>
To: perfbook@vger.kernel.org, paulmckrcu@gmail.com
Subject: [PATCH] api: Add multiple header files
Date: Thu, 19 Mar 2015 21:30:21 +0200	[thread overview]
Message-ID: <20150319193021.GA30095@ada> (raw)

Add multiple header files to avoid the warning: implicit declaration of
<function>.

Signed-off-by: Andreea-Cristina Bernat <bernat.ada@gmail.com>
---
 CodeSamples/api-pthreads/api-pthreads.h | 3 +++
 CodeSamples/api.h                       | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/CodeSamples/api-pthreads/api-pthreads.h b/CodeSamples/api-pthreads/api-pthreads.h
index f877097..35f4efb 100644
--- a/CodeSamples/api-pthreads/api-pthreads.h
+++ b/CodeSamples/api-pthreads/api-pthreads.h
@@ -26,6 +26,9 @@
 #include <errno.h>
 #include <limits.h>
 #include <sys/types.h>
+#include <sys/wait.h>
+#include <poll.h>
+#include <sys/time.h>
 #ifndef __USE_GNU
 #define __USE_GNU
 #endif /* #ifndef __USE_GNU */
diff --git a/CodeSamples/api.h b/CodeSamples/api.h
index beda5f9..bb46828 100644
--- a/CodeSamples/api.h
+++ b/CodeSamples/api.h
@@ -420,6 +420,9 @@ static __inline__ long long get_timestamp(void)
 #include <errno.h>
 #include <limits.h>
 #include <sys/types.h>
+#include <sys/wait.h>
+#include <poll.h>
+#include <sys/time.h>
 #ifndef __USE_GNU
 #define __USE_GNU
 #endif /* #ifndef __USE_GNU */
-- 
1.9.1


                 reply	other threads:[~2015-03-19 19:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20150319193021.GA30095@ada \
    --to=bernat.ada@gmail.com \
    --cc=paulmckrcu@gmail.com \
    --cc=perfbook@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.