See Monero commit [e106bdc1fc](e106bdc1fc (diff-d2cb9c3ff4)) by [@selsta](https://github.com/selsta). This commit includes <limits> in three epee source files in other to fix GCC11 builds, in my case for cross-compiling for Windows from Ubuntu using MinGW. I patch my files locally in order to achieve this, whereas this fix, tracking Monero upstream code, will allow builds to complete using GCC11 out of the box. See also https://github.com/MultiMC/Launcher/issues/3574 for the same issue in another repository for context.