diff options
author | Xing Xue <xingxue@outlook.com> | 2019-05-16 14:02:13 +0000 |
---|---|---|
committer | Xing Xue <xingxue@outlook.com> | 2019-05-16 14:02:13 +0000 |
commit | 2dee094a08ff4e244e8df046f3b1d6445e707b77 (patch) | |
tree | 5057df3159cbbcba2a956540b430d43426b0df29 /llvm/lib/Analysis/InstructionSimplify.cpp | |
parent | 3966b02cc82ac258f6696ff7ced5f58f1265021b (diff) | |
download | bcm5719-llvm-2dee094a08ff4e244e8df046f3b1d6445e707b77.tar.gz bcm5719-llvm-2dee094a08ff4e244e8df046f3b1d6445e707b77.zip |
Fixes for builds that require strict X/Open and POSIX compatiblity
Summary:
- Use alternative to MAP_ANONYMOUS for allocating mapped memory if it isn't available
- Use strtok_r instead of strsep as part of getting program path
- Don't try to find the width of a terminal using "struct winsize" and TIOCGWINSZ on POSIX builds. These aren't defined under POSIX (even though some platforms make them available when they shouldn't), so just check if we are doing a X/Open or POSIX compliant build first.
Author: daltenty
Reviewers: hubert.reinterpretcast, xingxue, andusy
Reviewed By: hubert.reinterpretcast
Subscribers: MaskRay, jsji, hiraditya, kristina, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D61326
llvm-svn: 360898
Diffstat (limited to 'llvm/lib/Analysis/InstructionSimplify.cpp')
0 files changed, 0 insertions, 0 deletions