]> Nishi Git Mirror - tewi.git/commitdiff
fix close
authorNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 12:55:47 +0000 (12:55 +0000)
committerNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 12:55:47 +0000 (12:55 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@87 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/server.c

index 0328977cdb4ac9a9ad295f1f80b78e50753a5d1c..dd973204ea8151fa7a046c66a8b0f69909dc87bb 100644 (file)
@@ -79,7 +79,7 @@ int tw_wildcard_match(const char* wildcard, const char* target) {
 }
 
 void close_socket(int sock) {
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__HAIKU__)
        closesocket(sock);
 #else
        close(sock);