- data type SOCKET doesn't exist on non-win32 platforms

This commit is contained in:
Volker Ruppert 2010-11-23 20:26:37 +00:00
parent 4a8d69caf6
commit cdfedaa9bc

View File

@ -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 // 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. // is used to know when we are exporting symbols and when we are importing.
#define BX_PLUGGABLE #define BX_PLUGGABLE
#include "iodev.h"
#include "serial.h"
#ifndef WIN32 #ifndef WIN32
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netdb.h> #include <netdb.h>
#define closesocket(s) close(s) #define closesocket(s) close(s)
typedef int SOCKET;
#else #else
#ifndef FILE_FLAG_FIRST_PIPE_INSTANCE #ifndef FILE_FLAG_FIRST_PIPE_INSTANCE
#define FILE_FLAG_FIRST_PIPE_INSTANCE 0 #define FILE_FLAG_FIRST_PIPE_INSTANCE 0
#endif #endif
#endif #endif
#include "iodev.h"
#include "serial.h"
#if USE_RAW_SERIAL #if USE_RAW_SERIAL
#include "serial_raw.h" #include "serial_raw.h"
#endif // USE_RAW_SERIAL #endif // USE_RAW_SERIAL