[x265] [PATCH] Fix *BSD build

Brad Smith brad at comstyle.com
Wed Oct 5 20:28:24 UTC 2022


ping.

Can the tree please be fixed so it builds?

On 9/24/2022 1:33 AM, Brad Smith wrote:
> Fix *BSD build
>
> Ever since 747a079f70096c6718cbf288a30fb3b7c88a55c9 the build
> has been broken.
>
> [ 63%] Building CXX object common/CMakeFiles/common.dir/ringmem.cpp.o
> /home/brad/tmp/x265_git/source/common/ringmem.cpp:163:27: error: use of undeclared identifier 'S_IRUSR'
> mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
> ^
> /home/brad/tmp/x265_git/source/common/ringmem.cpp:163:37: error: use of undeclared identifier 'S_IWUSR'
> mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
> ^
> /home/brad/tmp/x265_git/source/common/ringmem.cpp:163:47: error: use of undeclared identifier 'S_IRGRP'
> mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
> ^
> /home/brad/tmp/x265_git/source/common/ringmem.cpp:163:57: error: use of undeclared identifier 'S_IWGRP'
> mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
> ^
> /home/brad/tmp/x265_git/source/common/ringmem.cpp:163:67: error: use of undeclared identifier 'S_IROTH'
> mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
> ^
> /home/brad/tmp/x265_git/source/common/ringmem.cpp:163:77: error: use of undeclared identifier 'S_IWOTH'
> mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
> ^
> 6 errors generated.
>
> ---
>   source/common/threading.h | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/source/common/threading.h b/source/common/threading.h
> index 8a5c39cf0..98271b899 100644
> --- a/source/common/threading.h
> +++ b/source/common/threading.h
> @@ -37,6 +37,7 @@
>   #include <semaphore.h>
>   #include <errno.h>
>   #include <fcntl.h>
> +#include <sys/stat.h>
>   #endif
>   
>   #if MACOS


More information about the x265-devel mailing list