I think the file system Dlock code was added in MiNT 0.92 or thereabouts, but I can't remember for sure. I think it's safe to assume that nobody has a version of MiNT older than that one, i.e. I would do something like (if mint_version >= 1.04 assume new code else assume Dlock code).