<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64994>64994</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Merge "[llvm-exegesis] Use mmap2 when mmap is unavailable to fix riscv32 build" into release/17.x
</td>
</tr>
<tr>
<th>Labels</th>
<td>
tools:llvm-exegesis,
release:backport
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MaskRay
</td>
</tr>
</table>
<pre>
/cherry-pick 01a92f06f23585f15b3e83b7c378d0df2d91e06b
This fixes build failures for some newer 32-bit architectures of Linux like riscv32 where mmap2 is defined while mmap isn't.
@boomanaiden154 @legrosbuffle
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUkc2O2yAQx58GX0aJ8GD8cfBht5FP3UvVPgDgwabBJgK8yb59ZW_TjwtI8IeZ-f1USm5aiXomX5m8FGrLc4j9m0rXb-qj0GH86BkOZqYYP043Z67AS9Wh5bVFIVtpS6kFtUI3RjTtyEeLY1cSrzXjF8ZfPtfvs0tg3YMS6M35EaxyfouUwIYIKSwEK90pgsCTdhlUNLPLZPKRCRa-unV7gHdXguiSeRcI95kiwbKoG4JLMJJ1K41wn53_PAaXVoZNPv_bCau4DmFRq3IjraWsgFXc0xRD0pu1nqAYezF2olMF9WXdYddK2VTF3DeCC0l12aKxRJK4sQatFarpqsYIU7geOQreoiybqi6rMzd101retSiqsaOaVZwW5fzZ-_flHOJUuJQ26uuq66rCK00-HSYQcwg-MfGyJ0_0oImSSwyR4ReGGMmTSsTEi1bmegsx71fyUsT-eKC3Ke1zuZTT32LZZU_9G8WJ4Mi__v-7vMCP9ER6n2l9YoRtVe_KeaU9QQ67yT8aDp8MEdyaAzwbw6Fszo9ii76fc77tkzAcGA6Ty_OmzyYsDIe9_O_tdIvhJ5nMcDiYJIbDgeVXAAAA__82GNiQ">