<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/dmucs/patches/" rel="alternate"/><link href="https://sourceforge.net/p/dmucs/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/dmucs/patches/</id><updated>2008-11-19T16:44:55Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>fixes monitor crash when hostnames are not qualified</title><link href="https://sourceforge.net/p/dmucs/patches/3/" rel="alternate"/><published>2008-11-19T16:44:55Z</published><updated>2008-11-19T16:44:55Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netad1c40ba23ff83124308bf6dd912a21b61336aba</id><summary type="html">&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;</summary></entry><entry><title>[PATCH] fix FreeBSD build</title><link href="https://sourceforge.net/p/dmucs/patches/2/" rel="alternate"/><published>2008-03-31T21:03:48Z</published><updated>2008-03-31T21:03:48Z</updated><author><name>Max Khon</name><uri>https://sourceforge.net/u/fjoe/</uri></author><id>https://sourceforge.net7b880b4aa7c8f77862f90be52fea6f19b9726c56</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Attached patch fixes FreeBSD build&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add support for native Windows and cross compilatio</title><link href="https://sourceforge.net/p/dmucs/patches/1/" rel="alternate"/><published>2007-04-23T16:11:49Z</published><updated>2007-04-23T16:11:49Z</updated><author><name>Tsuna</name><uri>https://sourceforge.net/u/tsuna/</uri></author><id>https://sourceforge.net8eef80816424cfb6ac4349563761743c8a804fc5</id><summary type="html">&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;</summary></entry></feed>