Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37711436
en ru br
ALT Linux repos
S:2.3.3-alt1
5.0: 2.1.3-alt2
4.1: 2.1.3-alt2
4.0: 2.1.3-alt0.M40.2

Group :: System/Libraries
RPM: slang2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: slang-2.2.4-deb-hostent-haddr.patch
Download


Description:  As of glibc 2.9, struct hostent no longer defines h_addr, which was a backward-compatability
 alias for h_addr_list[0]
Bug-Debian: 491798.
Last-Updated: 2009-03-27
Author: Alastair McKinstry <mckinstry@debian.org>
Forwarded: no
--- slang/modules/socket-module.c
+++ slang/modules/socket-module.c
@@ -453,7 +453,7 @@ static Host_Addr_Info_Type *get_host_addr_info (char *host)
 #ifndef h_addr
    /* Older interface.  There is only one address, so fake a list */
    h_addr_list = fake_h_addr_list;
-   h_addr_list [0] = hp->h_addr;
+   h_addr_list [0] = hp->h_addr_list[0];
    h_addr_list [1] = NULL;
 #else
    h_addr_list = hp->h_addr_list;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin