[libunwind] Partially revert r297174 to fix build on at least FreeBSD.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 21 Sep 2017 21:28:48 +0000 (21:28 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 21 Sep 2017 21:28:48 +0000 (21:28 +0000)
commitd51d38f6f9e9528ad5c98f5c80ebbffd1f930273
tree8e8b37505cedf6e175251f44cde6ae04de531f8b
parent0d36b657b9771e6013e1e83e567d80003631766e
[libunwind] Partially revert r297174 to fix build on at least FreeBSD.

The changes in r297174 moved the #include of <link.h> on FreeBSD (and
probably other systems) inside of the open 'libunwind' namespace
causing various system-provided types such as pid_t to be declared in
this namespace rather than the global namespace.  Fix this by moving
the relevant declarations before the 'libunwind' namespace is opened,
but still using the cleaned up declarations from r297174.

Reviewed By: ed, compnerd

Differential Revision: https://reviews.llvm.org/D38108

llvm-svn: 313920
libunwind/src/AddressSpace.hpp