--- libs/Common/Types.h.orig 2022-04-17 08:46:34 UTC +++ libs/Common/Types.h @@ -201,6 +201,9 @@ namespace cv { namespace gpu = cuda; } # elif defined(__APPLE__) # include inline pid_t GetCurrentThreadId() { uint64_t tid64; pthread_threadid_np(NULL, &tid64); return (pid_t)tid64; } +# elif defined(__FreeBSD__) +# include +inline pid_t GetCurrentThreadId() { uint64_t tid64 = (uint64_t)pthread_self(); return (pid_t)tid64; } # define __THREAD__ ((unsigned)GetCurrentThreadId()) # else # include @@ -373,6 +376,8 @@ typedef TAliasCast CastD2I; # define __BYTE_ORDER __LITTLE_ENDIAN #elif defined(__APPLE__) # include +#elif defined(__FreeBSD__) +# include #elif defined(__GNUC__) # include #endif