mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-17 13:55:20 +00:00
6983248: net/net001 and net/net003 fail on WinXP with JDK7-B108
Using closesocket to close socket handler to avoid invalid C runtime parameter exception. Reviewed-by: alanb, phh, dcubed, dsamersoff, coleenp, acorn
This commit is contained in:
parent
cb72d9f503
commit
a534ff63b7
@ -29,12 +29,14 @@
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// To ensure winsock2.h is used, it has to be included ahead of
|
||||
// windows.h, which includes winsock.h by default.
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#include <io.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <mmsystem.h>
|
||||
#include <winsock2.h>
|
||||
#include <fcntl.h>
|
||||
#include <process.h>
|
||||
|
||||
@ -147,7 +149,7 @@ md_seek(int filedes, jlong pos)
|
||||
void
|
||||
md_close(int filedes)
|
||||
{
|
||||
(void)close(filedes);
|
||||
(void)closesocket(filedes);
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user