This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] NPTL: Add some missing #include's
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Mon, 20 Oct 2014 14:50:35 -0700 (PDT)
- Subject: [COMMITTED PATCH] NPTL: Add some missing #include's
- Authentication-results: sourceware.org; auth=none
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.
--- 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>