NPTL: Add some missing #include's
authorRoland McGrath <roland@hack.frob.com>
Mon, 20 Oct 2014 21:46:00 +0000 (14:46 -0700)
committerRoland McGrath <roland@hack.frob.com>
Mon, 20 Oct 2014 21:46:00 +0000 (14:46 -0700)
ChangeLog
nptl/pthread_cond_timedwait.c
nptl/pthread_mutex_timedlock.c
nptl/pthread_rwlock_timedrdlock.c
nptl/pthread_rwlock_timedwrlock.c
nptl/sem_timedwait.c

index e9d9d8d..dfad901 100644 (file)
--- 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.
index 1698085..1c53bdd 100644 (file)
@@ -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>
index a840f8e..c1bff9c 100644 (file)
@@ -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>
index 340ae3d..d3044fb 100644 (file)
@@ -21,6 +21,7 @@
 #include <lowlevellock.h>
 #include <pthread.h>
 #include <pthreadP.h>
+#include <sys/time.h>
 #include <kernel-features.h>
 
 
index be94a20..560403f 100644 (file)
@@ -21,6 +21,7 @@
 #include <lowlevellock.h>
 #include <pthread.h>
 #include <pthreadP.h>
+#include <sys/time.h>
 #include <kernel-features.h>
 
 
index 7dfe51d..5d4c830 100644 (file)
@@ -22,6 +22,7 @@
 #include <lowlevellock.h>
 #include <internaltypes.h>
 #include <semaphore.h>
+#include <sys/time.h>
 
 #include <pthreadP.h>
 #include <shlib-compat.h>