<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/dmucs/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/dmucs/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 19 Nov 2008 16:44:55 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dmucs/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>fixes monitor crash when hostnames are not qualified</title><link>https://sourceforge.net/p/dmucs/patches/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This change stops monitor from crashing when hostnames do not have '.' in them:&lt;/p&gt;
&lt;p&gt;replace code under "case 'H':" in monitor.cc with this:&lt;/p&gt;
&lt;p&gt;case 'H': {&lt;br /&gt;
std::string ipstr;&lt;br /&gt;
int state;&lt;br /&gt;
/* Read in ': &amp;lt;ip-address&amp;gt; &amp;lt;state&amp;gt;' */&lt;br /&gt;
instr.ignore();             // eat ':'&lt;br /&gt;
instr &amp;gt;&amp;gt; ipstr &amp;gt;&amp;gt; state;&lt;br /&gt;
std::string hostname = ipstr;&lt;/p&gt;
&lt;p&gt;unsigned int addr = inet_addr(ipstr.c_str());&lt;br /&gt;
struct hostent *he = gethostbyaddr((char *)&amp;amp;addr, sizeof(addr), AF_INET);&lt;br /&gt;
if (he)&lt;br /&gt;
{&lt;br /&gt;
/* Remove everything from the first . onward -- so we don't see&lt;br /&gt;
the long domain name in the output. */&lt;/p&gt;
&lt;p&gt;hostname = he-&amp;gt;h_name;&lt;br /&gt;
size_t pos = hostname.find_first_of('.');&lt;br /&gt;
if (pos != std::string::npos)&lt;br /&gt;
hostname.erase(pos);&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 19 Nov 2008 16:44:55 -0000</pubDate><guid>https://sourceforge.netad1c40ba23ff83124308bf6dd912a21b61336aba</guid></item><item><title>[PATCH] fix FreeBSD build</title><link>https://sourceforge.net/p/dmucs/patches/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Attached patch fixes FreeBSD build&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Max Khon</dc:creator><pubDate>Mon, 31 Mar 2008 21:03:48 -0000</pubDate><guid>https://sourceforge.net7b880b4aa7c8f77862f90be52fea6f19b9726c56</guid></item><item><title>Add support for native Windows and cross compilatio</title><link>https://sourceforge.net/p/dmucs/patches/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Victor,&lt;br /&gt;
I'm running a buildfarm where most of the machines are running GNU/Linux Debian.  I only have a couple of Windows machines and I wished to balance the compilation load on the Linux machines.  But I couldn't cross-compile DMUCS for Windows.  So I patched it and it works now.  I only patched `gethost' because I didn't have time to look at the rest of the code and that's the only thing I was interested in.&lt;/p&gt;
&lt;p&gt;The patch can be found @&lt;br /&gt;
&lt;a href="http://www.tsunanet.net/~tsuna/dmucs-0.6.2_win32.patch" rel="nofollow"&gt;http://www.tsunanet.net/~tsuna/dmucs-0.6.2_win32.patch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It also addresses some other issues (autotools stuff) so that the project can distcheck and be cross-compiled.&lt;/p&gt;
&lt;p&gt;There is a bootstrapped tarball @&lt;br /&gt;
&lt;a href="http://www.tsunanet.net/~tsuna/dmucs-0.6.2.tar.gz" rel="nofollow"&gt;http://www.tsunanet.net/~tsuna/dmucs-0.6.2.tar.gz&lt;/a&gt;&lt;br /&gt;
from which I removed the useless stuff (actually distcheck did this automagically :P)&lt;/p&gt;
&lt;p&gt;Let me know if you integrate these patches upstream (my email is &amp;lt;tsuna at lrde dot epita dot fr&amp;gt;).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tsuna</dc:creator><pubDate>Mon, 23 Apr 2007 16:11:49 -0000</pubDate><guid>https://sourceforge.net8eef80816424cfb6ac4349563761743c8a804fc5</guid></item></channel></rss>