From: Willem Jan Withagen Date: Wed, 14 Apr 2021 20:33:36 +0000 (+0200) Subject: include/compat: revert to basic locking if a OS does not have F_OFD_SETLK X-Git-Tag: v17.1.0~1992^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=44117ce5bdb8a1f5b3bbcb6a4a9a0810a93fe599;p=ceph.git include/compat: revert to basic locking if a OS does not have F_OFD_SETLK FreeBSD does not have the F_OFD_* versions for fcntl(). So instead F_SETLK is used instead of F_OFD_SETLK Signed-off-by: Willem Jan Withagen --- diff --git a/src/include/compat.h b/src/include/compat.h index 0d64f55aa9aa..4881e01ff98f 100644 --- a/src/include/compat.h +++ b/src/include/compat.h @@ -21,6 +21,11 @@ #define PROCPREFIX #endif +#include +#ifndef F_OFD_SETLK +#define F_OFD_SETLK F_SETLK +#endif + #include #ifndef ACCESSPERMS #define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)