From 9bc6103d0460686a92105410a306252238d952d8 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 20 Jun 2014 23:24:00 +0000 Subject: Include explicitly where required. This patch makes files using __ASSUME_* macros include explicitly, rather than relying on some other header (such as tls.h, lowlevellock.h or pthreadP.h) to include it implicitly. (I omitted cases where I've already posted or am testing the patch that stops the file from needing __ASSUME_* at all.) This accords with the general principle of making source files include the headers for anything they use, and also helps make it safe to remove includes from any file that doesn't use __ASSUME_* (some of those may be stray includes left behind after increasing the minimum kernel version, others may never have been needed or may have become obsolete after some other change). Tested x86_64 that the disassembly of installed shared libraries is unchanged by this patch. * nptl/pthread_cond_wait.c: Include . * nptl/pthread_rwlock_timedrdlock.c: Likewise. * nptl/pthread_rwlock_timedwrlock.c: Likewise. * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise. * nscd/nscd.c: Likewise. * sysdeps/i386/nptl/tcb-offsets.sym: Likewise. * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise. * sysdeps/sh/nptl/tcb-offsets.sym: Likewise. * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise. --- sysdeps/i386/nptl/tcb-offsets.sym | 1 + sysdeps/powerpc/nptl/tcb-offsets.sym | 1 + sysdeps/sh/nptl/tcb-offsets.sym | 1 + sysdeps/x86_64/nptl/tcb-offsets.sym | 1 + 4 files changed, 4 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/i386/nptl/tcb-offsets.sym b/sysdeps/i386/nptl/tcb-offsets.sym index 69f9deb368..7bdf161b29 100644 --- a/sysdeps/i386/nptl/tcb-offsets.sym +++ b/sysdeps/i386/nptl/tcb-offsets.sym @@ -1,5 +1,6 @@ #include #include +#include RESULT offsetof (struct pthread, result) TID offsetof (struct pthread, tid) diff --git a/sysdeps/powerpc/nptl/tcb-offsets.sym b/sysdeps/powerpc/nptl/tcb-offsets.sym index eac5b5c732..f996759027 100644 --- a/sysdeps/powerpc/nptl/tcb-offsets.sym +++ b/sysdeps/powerpc/nptl/tcb-offsets.sym @@ -1,5 +1,6 @@ #include #include +#include -- diff --git a/sysdeps/sh/nptl/tcb-offsets.sym b/sysdeps/sh/nptl/tcb-offsets.sym index 753b72b2dd..ac63b5b93b 100644 --- a/sysdeps/sh/nptl/tcb-offsets.sym +++ b/sysdeps/sh/nptl/tcb-offsets.sym @@ -1,5 +1,6 @@ #include #include +#include RESULT offsetof (struct pthread, result) TID offsetof (struct pthread, tid) diff --git a/sysdeps/x86_64/nptl/tcb-offsets.sym b/sysdeps/x86_64/nptl/tcb-offsets.sym index cf863752ee..729d1da38f 100644 --- a/sysdeps/x86_64/nptl/tcb-offsets.sym +++ b/sysdeps/x86_64/nptl/tcb-offsets.sym @@ -1,5 +1,6 @@ #include #include +#include RESULT offsetof (struct pthread, result) TID offsetof (struct pthread, tid) -- cgit 1.4.1