Would something like
```c
/* mingw requires its own version of resolve_symlink to be used. */
#ifndef OVERRIDE_RESOLVE_SYMLINK
```
work in place of  ```#ifndev resolve_symlink```  be likely to be more acceptable?  The key is that the use of the overridden version of ```resolve_symlink()```  in ```lock_file()```.
We can ```#define OVERRIDE_RESOLVE_SYMLINK``` along with the ```#define mingw_resolve_symlink```
Thoughts?