mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
occt: fix segfault in OSD_Host::InternetAddress
[ci skip]
This commit is contained in:
parent
1e5812bdda
commit
4b6c71fba1
2 changed files with 14 additions and 1 deletions
13
srcpkgs/occt/patches/fix-osd-host.patch
Normal file
13
srcpkgs/occt/patches/fix-osd-host.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# 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
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'occt'
|
# Template file for 'occt'
|
||||||
pkgname=occt
|
pkgname=occt
|
||||||
version=7.4.0p1
|
version=7.4.0p1
|
||||||
revision=1
|
revision=2
|
||||||
_gittag="V${version//./_}"
|
_gittag="V${version//./_}"
|
||||||
wrksrc=occt-${_gittag}
|
wrksrc=occt-${_gittag}
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
|
|
Loading…
Add table
Reference in a new issue