]> git.eshelyaron.com Git - emacs.git/commit
Fix filelock.c for Haiku
authorPo Lu <luangruo@yahoo.com>
Sun, 9 Jan 2022 13:30:26 +0000 (13:30 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 9 Jan 2022 13:34:19 +0000 (13:34 +0000)
commit691015fedbb94c69fd7d5b0fffe9df9715bb0158
tree92cfa2f3ac9cb9242c8bbdedae0a9266dbb1b31c
parent54971f5c14fd430208bd456d9f6efcb28b6abe28
Fix filelock.c for Haiku

This was found during the investigation surrounding bug#53136,
but is not directly related.

* src/filelock.c (lock_if_free): Explictly test err against -1
or -2, and reverse sign of system errors on Haiku.  (No Haiku
error occupies -1 or -2.)
src/filelock.c