[PATCH] api: Add multiple header files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Andreea-Cristina Bernat <bernat.ada@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe perfbook" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux