Skip to contentSkip to conversation

1.1.4 incompatible with glibc 2.1

DISCUSSION Stas Sergeev 2 participants 2 messages Jan 4, 2003

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 2 lines · Sergey Suleymanov

timid.c: In function `timid_preinit':
timid.c:105: `in_addr_t' undeclared (first use in this function)

Of course you can change "sizeof(in_addr_t)" to something like "sizeof(*serv->h_addr)", but it is unclear why it doesn't work for you.
"man inet" refers to "in_addr_t" a lot, so it must be perfectly OK to use IMO.

#1 lore raw
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Stas Sergeev writes:

timid.c: In function timid_preinit': timid.c:105: in_addr_t' undeclared (first use in this function)

Stas> Of course you can change "sizeof(in_addr_t)" to something like Stas> "sizeof(*serv->h_addr)", but it is unclear why it doesn't work Stas> for you. "man inet" refers to "in_addr_t" a lot, so it must be Stas> perfectly OK to use IMO.

        Glibc-2.2 has

typedef uint32_t in_addr_t;

        in /usr/include/netinet/in.h. Glibc-2.1 hasn't. :(
Signature · 1 line
  Sergey Suleymanov