about summary refs log tree commit diff
diff options
context:
space:
mode:
-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>