On FreeBSD do not try to redefine O_PATH.

FreeBSD 13+ versions do have O_PATH flag, but FreeBSD 12, which is still supported
does not.
This commit is contained in:
Gleb Popov 2022-08-21 22:43:31 +03:00
parent ad13681d33
commit c6ffeeeb34

View file

@ -39,8 +39,10 @@
#include <pwd.h>
#endif
#if defined(__FreeBSD__) || defined(__MidnightBSD__)
#ifndef O_PATH
#define O_PATH 0
#endif
#endif
#include <spa/utils/result.h>
#include <spa/utils/string.h>