mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-02 02:48:03 -06:00
fix epoll stuffs
This commit is contained in:
parent
e7e5c4b619
commit
4ab2cfc5da
@ -1147,8 +1147,6 @@ target_link_libraries(shadps4 PRIVATE stb::headers lfreist-hwinfo::hwinfo nlohma
|
||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||
target_link_libraries(shadps4 PRIVATE "/usr/lib/libusb.so")
|
||||
target_link_libraries(shadps4 PRIVATE "/usr/local/lib/libuuid.so")
|
||||
target_link_libraries(shadps4 PRIVATE "/usr/local/lib/libepoll-shim.so")
|
||||
target_include_directories(shadps4 PRIVATE "/usr/local/include/libepoll-shim")
|
||||
else()
|
||||
target_link_libraries(shadps4 PRIVATE libusb::usb)
|
||||
endif()
|
||||
@ -1197,6 +1195,8 @@ if (APPLE)
|
||||
|
||||
# Replacement for std::chrono::time_zone
|
||||
target_link_libraries(shadps4 PRIVATE date::date-tz epoll-shim)
|
||||
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||
target_link_libraries(shadps4 PRIVATE epoll-shim)
|
||||
endif()
|
||||
|
||||
if (WIN32)
|
||||
|
||||
@ -17,12 +17,7 @@
|
||||
#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
|
||||
// ADD libepoll-shim if using freebsd!
|
||||
#include <sys/epoll.h>
|
||||
#endif
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#include <unistd.h>
|
||||
int epoll_create1(int fd) {
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace Libraries::Net {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user