TARGET_F_*64 should be used instead of F_*64, because on 64-bit host systems F_GETLK == F_GETLK64(same for SETLK and SETLKW), so we cannot determinate if it's a long lock or not on a target system. Patch in the attachment.
P.S. Please, review my privious patches, which I have added description recently. Or should I repost it?
signature.asc
Description: Digital signature