Эх сурвалжийг харах

Merge pull request #8196 from jbeich/freebsd

service: sfdnsres: unbreak build on FreeBSD
bunnei 4 жил өмнө
parent
commit
fc258f1d7a

+ 4 - 0
src/core/hle/service/sockets/sfdnsres.cpp

@@ -18,7 +18,11 @@
 #elif YUZU_UNIX
 #elif YUZU_UNIX
 #include <arpa/inet.h>
 #include <arpa/inet.h>
 #include <netdb.h>
 #include <netdb.h>
+#include <netinet/in.h>
 #include <sys/socket.h>
 #include <sys/socket.h>
+#ifndef EAI_NODATA
+#define EAI_NODATA EAI_NONAME
+#endif
 #endif
 #endif
 
 
 namespace Service::Sockets {
 namespace Service::Sockets {