Hello.

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

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.
--- src/arch/linux/dosext/sound/midid/timid.c   Sat Jan  4 15:40:30 2003
+++ src/arch/linux/dosext/sound/midid/timid.c   Sun Jan  5 13:04:50 2003
@@ -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;

Reply via email to