[collectd] [PATCH] compile on NetBSD

Doug MacEachern Doug.MacEachern at hyperic.com
Wed May 6 16:12:57 CEST 2009


> -----Original Message-----
> From: Florian Forster [mailto:octo at verplant.org]
> Sent: Wednesday, May 06, 2009 1:48 AM
> To: Doug MacEachern
> Cc: collectd at verplant.org
> Subject: Re: [collectd] [PATCH] compile on NetBSD
> 
> Hi Doug,
> 
> On Wed, May 06, 2009 at 02:00:38AM -0400, Doug MacEachern wrote:
> > If you don't mind me avoiding autoconf and using __NetBSD__ instead
> ..
> > attached patch against master compiles on netbsd-4.0.
> 
> thanks for the patch :) I've split it into two separate patches for
the
> tcpconns and the uuid plugins. They're in the collectd-4.5 and all
> later branches.

Excellent.  Should have made it two commits, I'll do that next time.
 
> Using __NetBSD__ is okay for me, but instead of undefining the sysctl
> define it might be a better idea to reorder the code, so that the
most-
> specific code is used with the highest priority.

Thought about that, problem there is I believe you'd end using kvm on
FreeBSD when sysctlbyname is the preferred way.
 
> Regards,
> -octo
> --
> Florian octo Forster
> Hacker in training
> GnuPG: 0x91523C3D
> http://verplant.org/



More information about the collectd mailing list