Skip to content

Commit

Permalink
DEV9: fix some missing includes and nonportable u_long type use
Browse files Browse the repository at this point in the history
  • Loading branch information
nekopsykose authored and stenzek committed Dec 30, 2023
1 parent 69ac4dd commit 1823753
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_In.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace Sessions
int err = 0;
int recived;

u_long available;
unsigned long available;
#ifdef _WIN32
err = ioctlsocket(client, FIONREAD, &available);
#elif defined(__POSIX__)
Expand Down
3 changes: 2 additions & 1 deletion pcsx2/DEV9/Sessions/UDP_Session/UDP_FixedPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define SOCKET_ERROR -1
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <netinet/in.h>
#endif

Expand Down Expand Up @@ -132,7 +133,7 @@ namespace Sessions

if (hasData)
{
u_long available = 0;
unsigned long available = 0;
PayloadData* recived = nullptr;
std::unique_ptr<u8[]> buffer;
sockaddr endpoint{0};
Expand Down
3 changes: 2 additions & 1 deletion pcsx2/DEV9/Sessions/UDP_Session/UDP_Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define SOCKET_ERROR -1
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <netinet/in.h>
#endif

Expand Down Expand Up @@ -119,7 +120,7 @@ namespace Sessions

if (hasData)
{
u_long available = 0;
unsigned long available = 0;
PayloadData* recived = nullptr;
std::unique_ptr<u8[]> buffer;
sockaddr endpoint{0};
Expand Down

0 comments on commit 1823753

Please sign in to comment.