about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-10-20 14:46:00 -0700
committerRoland McGrath <roland@hack.frob.com>2014-10-20 14:46:00 -0700
commit6af246cf8b6cac6e504aaf06c47b284a204335e0 (patch)
treeef400a05d44f2c5a1fd7f958e5719697560a1dbe
parentab49e7630f88ba9cc165dd2d855938c14ae4e158 (diff)
downloadglibc-6af246cf8b6cac6e504aaf06c47b284a204335e0.tar.gz
glibc-6af246cf8b6cac6e504aaf06c47b284a204335e0.tar.xz
glibc-6af246cf8b6cac6e504aaf06c47b284a204335e0.zip
NPTL: Add some missing #include's
-rw-r--r--ChangeLog7
-rw-r--r--nptl/pthread_cond_timedwait.c1
-rw-r--r--nptl/pthread_mutex_timedlock.c1
-rw-r--r--nptl/pthread_rwlock_timedrdlock.c1
-rw-r--r--nptl/pthread_rwlock_timedwrlock.c1
-rw-r--r--nptl/sem_timedwait.c1
6 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e9d9d8d737..dfad901052 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2014-10-20  Roland McGrath  <roland@hack.frob.com>
 
+	* 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.
+
 	* sysdeps/nptl/bits/libc-lock.h
 	[_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
 	(__libc_lock_init_recursive): Return void, not 0.
diff --git a/nptl/pthread_cond_timedwait.c b/nptl/pthread_cond_timedwait.c
index 1698085361..1c53bdddc3 100644
--- 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>
diff --git a/nptl/pthread_mutex_timedlock.c b/nptl/pthread_mutex_timedlock.c
index a840f8eb6d..c1bff9cf00 100644
--- 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>
diff --git a/nptl/pthread_rwlock_timedrdlock.c b/nptl/pthread_rwlock_timedrdlock.c
index 340ae3d394..d3044fb047 100644
--- 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>
 
 
diff --git a/nptl/pthread_rwlock_timedwrlock.c b/nptl/pthread_rwlock_timedwrlock.c
index be94a207f6..560403f50a 100644
--- 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>
 
 
diff --git a/nptl/sem_timedwait.c b/nptl/sem_timedwait.c
index 7dfe51dd8b..5d4c83090f 100644
--- 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>