[Title] close => closesocket in Windows
authordongkyun.yun <dk77.yun@samsung.com>
Sun, 4 Dec 2011 11:52:17 +0000 (20:52 +0900)
committerdongkyun.yun <dk77.yun@samsung.com>
Sun, 4 Dec 2011 11:52:17 +0000 (20:52 +0900)
[Type]      // Commit Type: Feature / Bugfix / Enhancement
[Module]    // Module Name - (Main / Sub)
[Priority]  // Importance : Critical / Major / Minor
[CQ#]       // CQ Issue Number
[Redmine#]  // Redmine Isuue Number
[Problem]   // Problem Description
[Cause]     // Cause Description
[Solution]  // Solution Description
[TestCase]  // Executed the test-target (How to)

sdb.c

diff --git a/sdb.c b/sdb.c
index 5ba66c2..c4f13c5 100644 (file)
--- a/sdb.c
+++ b/sdb.c
@@ -227,7 +227,11 @@ static int check_port_bind_listen(u_int port)
                INFO( "port(%d) listen  ok \n", port);
        }
 
+#ifdef _WIN32
+       closesocket(s);
+#else
        close(s);
+#endif
 
        return ret;
 }