void-packages/srcpkgs/occt/patches/fix-osd-host.patch
2020-11-06 12:09:03 -03:00

13 lines
398 B
Diff

# gethostbyname returns a nullptr, because the host can't resolve itself
--- src/OSD/OSD_Host.cxx
+++ src/OSD/OSD_Host.cxx
@@ -124,7 +124,7 @@ TCollection_AsciiString OSD_Host::InternetAddress(){
host = HostName();
memcpy(&internet_address,
- gethostbyname(host.ToCString()),
+ gethostbyname("localhost"),
sizeof(struct hostent));
// Gets each bytes into integers