* [PATCH] api: Add multiple header files
@ 2015-03-19 19:30 Andreea-Cristina Bernat
0 siblings, 0 replies; only message in thread
From: Andreea-Cristina Bernat @ 2015-03-19 19:30 UTC (permalink / raw)
To: perfbook, paulmckrcu
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-19 19:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 19:30 [PATCH] api: Add multiple header files Andreea-Cristina Bernat
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.