[COMMITTED] NPTL: Add some missing #include's

Message ID 20141020215035.363A52C3B08@topped-with-meat.com
State Committed
Headers

Commit Message

Roland McGrath Oct. 20, 2014, 9:50 p.m. UTC
  This has no effect on generated code, but eliminates some warnings in some
configurations.


Thanks,
Roland

	* nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
	gettimeofday.
	* nptl/pthread_rwlock_timedwrlock.c: Likewise.
	* nptl/pthread_cond_timedwait.c: Likewise.
	* nptl/pthread_mutex_timedlock.c: Likewise.
	* nptl/sem_timedwait.c: Likewise.
  

Patch

--- a/nptl/pthread_cond_timedwait.c
+++ b/nptl/pthread_cond_timedwait.c
@@ -22,6 +22,7 @@ 
 #include <lowlevellock.h>
 #include <pthread.h>
 #include <pthreadP.h>
+#include <sys/time.h>
 #include <kernel-features.h>
 
 #include <shlib-compat.h>
--- a/nptl/pthread_mutex_timedlock.c
+++ b/nptl/pthread_mutex_timedlock.c
@@ -20,6 +20,7 @@ 
 #include <errno.h>
 #include <time.h>
 #include <sys/param.h>
+#include <sys/time.h>
 #include "pthreadP.h"
 #include <lowlevellock.h>
 #include <not-cancel.h>
--- a/nptl/pthread_rwlock_timedrdlock.c
+++ b/nptl/pthread_rwlock_timedrdlock.c
@@ -21,6 +21,7 @@ 
 #include <lowlevellock.h>
 #include <pthread.h>
 #include <pthreadP.h>
+#include <sys/time.h>
 #include <kernel-features.h>
 
 
--- a/nptl/pthread_rwlock_timedwrlock.c
+++ b/nptl/pthread_rwlock_timedwrlock.c
@@ -21,6 +21,7 @@ 
 #include <lowlevellock.h>
 #include <pthread.h>
 #include <pthreadP.h>
+#include <sys/time.h>
 #include <kernel-features.h>
 
 
--- a/nptl/sem_timedwait.c
+++ b/nptl/sem_timedwait.c
@@ -22,6 +22,7 @@ 
 #include <lowlevellock.h>
 #include <internaltypes.h>
 #include <semaphore.h>
+#include <sys/time.h>
 
 #include <pthreadP.h>
 #include <shlib-compat.h>