Adapt file to various vendors and platforms.