mirror of https://github.com/PCSX2/pcsx2.git
DEV9: fix some missing includes and nonportable u_long type use
This commit is contained in:
parent
69ac4ddedc
commit
182375314e
|
@ -80,7 +80,7 @@ namespace Sessions
|
||||||
int err = 0;
|
int err = 0;
|
||||||
int recived;
|
int recived;
|
||||||
|
|
||||||
u_long available;
|
unsigned long available;
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
err = ioctlsocket(client, FIONREAD, &available);
|
err = ioctlsocket(client, FIONREAD, &available);
|
||||||
#elif defined(__POSIX__)
|
#elif defined(__POSIX__)
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#define SOCKET_ERROR -1
|
#define SOCKET_ERROR -1
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -132,7 +133,7 @@ namespace Sessions
|
||||||
|
|
||||||
if (hasData)
|
if (hasData)
|
||||||
{
|
{
|
||||||
u_long available = 0;
|
unsigned long available = 0;
|
||||||
PayloadData* recived = nullptr;
|
PayloadData* recived = nullptr;
|
||||||
std::unique_ptr<u8[]> buffer;
|
std::unique_ptr<u8[]> buffer;
|
||||||
sockaddr endpoint{0};
|
sockaddr endpoint{0};
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#define SOCKET_ERROR -1
|
#define SOCKET_ERROR -1
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -119,7 +120,7 @@ namespace Sessions
|
||||||
|
|
||||||
if (hasData)
|
if (hasData)
|
||||||
{
|
{
|
||||||
u_long available = 0;
|
unsigned long available = 0;
|
||||||
PayloadData* recived = nullptr;
|
PayloadData* recived = nullptr;
|
||||||
std::unique_ptr<u8[]> buffer;
|
std::unique_ptr<u8[]> buffer;
|
||||||
sockaddr endpoint{0};
|
sockaddr endpoint{0};
|
||||||
|
|
Loading…
Reference in New Issue