aboutsummaryrefslogtreecommitdiff
path: root/emulators/virtualbox-ose-71/files/patch-src_VBox_Runtime_r3_posix_process-creation-posix.cpp
blob: 83cabcb77b9797ad2e434d3d5ed7294b4823f848 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- 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 <iprt/cdefs.h>
-#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 <shadow.h>
 #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