diff options
Diffstat (limited to 'devel/RStudio/files/patch-src_cpp_shared__core_system_PosixSystem.cpp')
-rw-r--r-- | devel/RStudio/files/patch-src_cpp_shared__core_system_PosixSystem.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/RStudio/files/patch-src_cpp_shared__core_system_PosixSystem.cpp b/devel/RStudio/files/patch-src_cpp_shared__core_system_PosixSystem.cpp new file mode 100644 index 000000000000..6a304d8a4651 --- /dev/null +++ b/devel/RStudio/files/patch-src_cpp_shared__core_system_PosixSystem.cpp @@ -0,0 +1,23 @@ +--- src/cpp/shared_core/system/PosixSystem.cpp.orig 2021-06-09 01:52:44 UTC ++++ src/cpp/shared_core/system/PosixSystem.cpp +@@ -29,8 +29,10 @@ + #include <memory.h> + #include <netdb.h> + #include <pwd.h> ++#include <netinet/in.h> // for sa_family_t ++#include <sys/socket.h> // for struct sockaddr + +-#ifndef __APPLE__ ++#if !defined(__APPLE__) && !defined(__FreeBSD__) + #include <sys/prctl.h> + #endif + +@@ -80,7 +82,7 @@ Error restorePrivilegesImpl(uid_t in_uid) + + Error enableCoreDumps() + { +-#ifndef __APPLE__ ++#if !defined(__APPLE__) && !defined(__FreeBSD__) + int res = ::prctl(PR_SET_DUMPABLE, 1); + if (res == -1) + return systemError(errno, ERROR_LOCATION); |