Skip to contentSkip to conversation

api: Add multiple header files

PATCH New Andreea-Cristina Bernat 1 participant 1 message Mar 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 api: Add multiple header files

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

---
 CodeSamples/api-pthreads/api-pthreads.h | 3 +++
 CodeSamples/api.h                       | 3 +++
 2 files changed, 6 insertions(+)
CodeSamples/api-pthreads/api-pthreads.h +3 -0
index f877097..35f4efb 100644
@@ -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 */
CodeSamples/api.h +3 -0
index beda5f9..bb46828 100644
@@ -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 */
Signature · 1 line
1.9.1