mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-28 09:23:34 +00:00
Linux build fix
This commit is contained in:
parent
0a35c4f2c4
commit
a00f47b5e4
@ -32,8 +32,8 @@ int sceNpDrmIsAvailable(u32 k_licensee_addr, u32 drm_path_addr)
|
||||
k_licensee_str += wxString::Format("%02x", k_licensee[i]);
|
||||
}
|
||||
|
||||
sceNp.Warning("sceNpDrmIsAvailable: Found DRM license file at %s", drm_path.c_str());
|
||||
sceNp.Warning("sceNpDrmIsAvailable: Using k_licensee 0x%s", k_licensee_str);
|
||||
sceNp.Warning("sceNpDrmIsAvailable: Found DRM license file at %s", drm_path.wx_str());
|
||||
sceNp.Warning("sceNpDrmIsAvailable: Using k_licensee 0x%s", k_licensee_str.wx_str());
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock.h>
|
||||
#elif
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
@ -296,7 +296,11 @@ int sys_net_socket(s32 family, s32 type, s32 protocol)
|
||||
int sys_net_socketclose(s32 s)
|
||||
{
|
||||
sys_net.Warning("socket(s=%d)", s);
|
||||
#ifdef _WIN32
|
||||
int ret = closesocket(s);
|
||||
#else
|
||||
int ret = close(s);
|
||||
#endif
|
||||
g_lastError = getLastError();
|
||||
return ret;
|
||||
}
|
||||
@ -321,8 +325,6 @@ int sys_net_initialize_network_ex(mem_ptr_t<sys_net_initialize_parameter> param)
|
||||
WSADATA wsaData;
|
||||
WORD wVersionRequested = MAKEWORD(1,1);
|
||||
WSAStartup(wVersionRequested, &wsaData);
|
||||
#elif
|
||||
// TODO ?
|
||||
#endif
|
||||
return CELL_OK;
|
||||
}
|
||||
@ -454,8 +456,6 @@ int sys_net_finalize_network()
|
||||
g_lastError.SetAddr(NULL);
|
||||
#ifdef _WIN32
|
||||
WSACleanup();
|
||||
#else
|
||||
// TODO ?
|
||||
#endif
|
||||
return CELL_OK;
|
||||
}
|
||||
@ -539,4 +539,4 @@ void sys_net_init()
|
||||
sys_net.AddFunc(0xc9157d30, _sys_net_h_errno_loc);
|
||||
sys_net.AddFunc(0xe2434507, sys_net_set_netemu_test_param);
|
||||
sys_net.AddFunc(0xfdb8f926, sys_net_free_thread_context);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user