api: Add multiple header files
PATCH 1/1 api: Add multiple header files
Add multiple header files to avoid the warning: implicit declaration of <function>.
Signed-off-by Andreea-Cristina Bernat <[email protected]>
--- CodeSamples/api-pthreads/api-pthreads.h | 3 +++ CodeSamples/api.h | 3 +++ 2 files changed, 6 insertions(+)
CodeSamples/api-pthreads/api-pthreads.h +3 -0
@@ -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
@@ -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