mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 21:16:00 +01:00
Replace macro
This commit is contained in:
parent
445422b479
commit
cc39352485
1 changed files with 5 additions and 1 deletions
|
@ -36,7 +36,11 @@
|
||||||
|
|
||||||
#ifdef __GNU__
|
#ifdef __GNU__
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#define file_lock_set(fd, cmd) flock(fd, cmd)
|
static int
|
||||||
|
file_lock_set(int fd, int cmd)
|
||||||
|
{
|
||||||
|
return flock(fd, cmd);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
static int
|
static int
|
||||||
file_lock_set(int fd, short cmd)
|
file_lock_set(int fd, short cmd)
|
||||||
|
|
Loading…
Reference in a new issue