--- src/VBox/Runtime/r3/posix/process-creation-posix.cpp.orig 2022-01-13 18:58:24 UTC +++ src/VBox/Runtime/r3/posix/process-creation-posix.cpp @@ -30,7 +30,7 @@ *********************************************************************************************************************************/ #define LOG_GROUP RTLOGGROUP_PROCESS #include -#ifdef RT_OS_LINUX +#if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) # define IPRT_WITH_DYNAMIC_CRYPT_R #endif #if (defined(RT_OS_LINUX) || defined(RT_OS_OS2)) && !defined(_GNU_SOURCE) @@ -69,7 +69,7 @@ # include #endif -#if defined(RT_OS_LINUX) || defined(RT_OS_OS2) +#if defined(RT_OS_LINUX) || defined(RT_OS_OS2) || defined(RT_OS_FREEBSD) /* While Solaris has posix_spawn() of course we don't want to use it as * we need to have the child in a different process contract, no matter * whether it is started detached or not. */ @@ -157,7 +157,7 @@ # define IPRT_LIBPAM_FILE_3 "libpam.1.dylib" # define IPRT_LIBPAM_FILE_3_FIRST_VER 0 # define IPRT_LIBPAM_FILE_3_END_VER 0 -# elif RT_OS_LINUX +# elif RT_OS_LINUX || RT_OS_FREEBSD # define IPRT_LIBPAM_FILE_1 "libpam.so.0" # define IPRT_LIBPAM_FILE_1_FIRST_VER 0 # define IPRT_LIBPAM_FILE_1_END_VER 0 @@ -572,7 +572,7 @@ static int rtCheckCredentials(const char *pszUser, con if (pPw->pw_passwd && *pPw->pw_passwd) # endif { -# if defined(RT_OS_LINUX) || defined(RT_OS_OS2) +# if defined(RT_OS_LINUX) || defined(RT_OS_OS2) || defined(RT_OS_FREEBSD) # ifdef IPRT_WITH_DYNAMIC_CRYPT_R size_t const cbCryptData = RT_MAX(sizeof(struct crypt_data) * 2, _256K); # else