Add missing header

Presumably included by header leakage on other platforms.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209630 91177308-0d34-0410-b5e6-96231b3b80d8
Use MIUtilSystemLinux on FreeBSD as well

We should later rename this file (probably MIUtilSystemPOSIX), but
more clean-up is still needed here, and we can wait until we better
understand how this code may be shared between FreeBSD, Linux, and OS X.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209631 91177308-0d34-0410-b5e6-96231b3b80d8
Remove include of obsolete stropts.h header

The header is for POSIX streams functionality, and does not exist on
FreeBSD, OS X, or contemporary Linux distributions.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209632 91177308-0d34-0410-b5e6-96231b3b80d8
Add stdlib.h for malloc and friends


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209633 91177308-0d34-0410-b5e6-96231b3b80d8
Merge upstream llvm.org r209633 into dev-tfiala-native-protocol-linux-x86_64
Fix up $H test that mis-formatted thread ids.

It was adding an 0x prefix to the thread id.  debugserver seems to handle
this fine, but not llgs/lldb-platform.  Reading the spec, it doesn't seem
to indicate an optional 0x on the hex-encoded thread ids.