Browse Source

Add missing OS check for Socket class

Patrick-Christopher Mattulat 3 years ago
parent
commit
cb55906960
1 changed files with 3 additions and 1 deletions
  1. 3 1
      source/ls_std/network/Socket.cpp

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

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