Sfoglia il codice sorgente

Add missing OS check for Socket class

Patrick-Christopher Mattulat 3 anni fa
parent
commit
cb55906960
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      source/ls_std/network/Socket.cpp

+ 3 - 1
source/ls_std/network/Socket.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-12-06
- * Changed:         2020-12-06
+ * Changed:         2020-12-21
  *
  * */
 
@@ -71,6 +71,7 @@ bool ls_std::Socket::_close()
   return closed;
 }
 
+#ifdef _WIN32
 bool ls_std::Socket::_closeOnWindows() const
 {
   int result = closesocket(this->descriptor);
@@ -82,6 +83,7 @@ bool ls_std::Socket::_closeOnWindows() const
 
   return closed;
 }
+#endif
 
 int ls_std::Socket::_convertAddressFamily(ls_std::AddressFamily _addressFamily)
 {