[Mimedefang] mimedefang.c:1721: structure has no member named `sin_addr'
Tomasz Ostrowski
tometzky at batory.org.pl
Wed Dec 1 10:20:34 EST 2004
I've an old, Libc-5 based, Linux system with mimedefang. When I tried
to compile mimedefang-2.49 I got the following message:
mimedefang.c: In function `main':
mimedefang.c:1721: structure has no member named `sin_addr'
make: *** [mimedefang.o] Error 1
It looks like the code used when a system does not have inet_ntop()
is broken. At least when I changed it, like you can see in attached
patch, it compiled and looks like it works.
Regards
Tometzky
--
...although Eating Honey was a very good thing to do, there was a
moment just before you began to eat it which was better than when you
were...
Winnie the Pooh
-------------- next part --------------
diff -urP mimedefang-2.49.orig/mimedefang.c mimedefang-2.49/mimedefang.c
--- mimedefang-2.49.orig/mimedefang.c Wed Nov 24 21:59:17 2004
+++ mimedefang-2.49/mimedefang.c Mon Nov 29 18:57:24 2004
@@ -1718,7 +1718,7 @@
}
#else
{
- char *s = inet_ntoa(in.sin_addr);
+ char *s = inet_ntoa(in);
if (s && *s) MyIPAddress = strdup_with_log(s);
}
#endif
More information about the MIMEDefang
mailing list