Skip to contentSkip to conversation

1.1.4 incompatible with glibc 2.1

DISCUSSION Stas Sergeev 1 participant 1 message Jan 5, 2003

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 1 line · Sergey Suleymanov

Stas> dosemu required at all, just "upgrade your glibc" message. Wow! :) That's sort of using a steam-hammer to crack nuts.

Yes:)

Quoted 3 lines

Stas> I can't beleive it can be simply missing, after reading "man Stas> inet".
I read it too. And saw just unsigned long int :) System is

That makes sense.
OK, as the in_addr_t is not really used (only once for sizeof), then there should be no problems at all avoiding it entirely. The attached trivial patch should do the trick.

arch/linux/dosext/sound/midid/timid.c +1 -1
@@ -102,7 +102,7 @@
   
   ctrl_adr.sin_family = AF_INET;
   ctrl_adr.sin_port = htons(config.timid_port);
-  memcpy(&ctrl_adr.sin_addr.s_addr, serv->h_addr, sizeof(in_addr_t));
+  memcpy(&ctrl_adr.sin_addr.s_addr, serv->h_addr, sizeof(ctrl_adr.sin_addr.s_addr));
 
   data_adr.sin_family = AF_INET;
   data_adr.sin_addr.s_addr = ctrl_adr.sin_addr.s_addr;