How do you want to avoid checking for linux here? If we call readlink unconditionally, then we'll end up with readlink("/path/to/file") on other platforms which is the thing I was mentioning being wrong.
What I'm trying to ask is, why would this be wrong? Why is it important that we don't use readlink() on this path?