Replace macro

This commit is contained in:
Sebastian Ramacher 2019-01-18 20:11:54 +01:00
parent 445422b479
commit cc39352485

View file

@ -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)