From cdfedaa9bcedf7bbf5a9c1ee8ed5740be2efde85 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Tue, 23 Nov 2010 20:26:37 +0000 Subject: [PATCH] - data type SOCKET doesn't exist on non-win32 platforms --- bochs/iodev/serial.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bochs/iodev/serial.cc b/bochs/iodev/serial.cc index a2cdab670..29992be67 100644 --- a/bochs/iodev/serial.cc +++ b/bochs/iodev/serial.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: serial.cc,v 1.92 2010-11-23 14:59:36 sshwarts Exp $ +// $Id: serial.cc,v 1.93 2010-11-23 20:26:37 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2004-2009 The Bochs Project @@ -30,20 +30,21 @@ // is used to know when we are exporting symbols and when we are importing. #define BX_PLUGGABLE -#include "iodev.h" -#include "serial.h" - #ifndef WIN32 #include #include #include #define closesocket(s) close(s) +typedef int SOCKET; #else #ifndef FILE_FLAG_FIRST_PIPE_INSTANCE #define FILE_FLAG_FIRST_PIPE_INSTANCE 0 #endif #endif +#include "iodev.h" +#include "serial.h" + #if USE_RAW_SERIAL #include "serial_raw.h" #endif // USE_RAW_SERIAL