Page 1 of 1

[Nagios-devel] [patch] FreeBSD fix for cfg_dir Re: Bug: cfg_dir

Posted: Tue Jan 22, 2008 10:34 am
by Guest
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.

--1743242027-1955856773-1201026859=:8384
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 22 Jan 2008, Jan Grant wrote:

> To get this working under FreeBSD it may be simply sufficient to hack a
>
> [[[
> #define _DIRENT_HAVE_D_TYPE
> ]]]
>
> into include/config.h before making...
>
> ...hm, having just tried it, that might just sort you out :-)

Attached is a patch against nagios-2.10 which detects the "missing"
_DIRENT_HAVE_D_TYPE on BSD systems (the heuristic is to look for
DT_UNKNOWN) and defines it in those cases.

It's a bit of a hack, but the attached diff makes nagios compile cleanly
on FreeBSD and gets cffg_dir recursing properly.

I'll sort out something for Solaris over the next day or so.

Cheers,
jan


--
jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661 http://ioctl.org/jan/
Unfortunately, I have a very good idea how fast my keys are moving.
--1743242027-1955856773-1201026859=:8384
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=nagios-cfg-dir.diff
Content-Transfer-Encoding: BASE64
Content-ID:
Content-Description:
Content-Disposition: attachment; filename=nagios-cfg-dir.diff

LS0tIGluY2x1ZGUvY29uZmlnLmguaW4ub3JpZwkyMDA4LTAxLTIyIDE4OjIy
OjA0LjAwMDAwMDAwMCArMDAwMA0KKysrIGluY2x1ZGUvY29uZmlnLmguaW4J
MjAwOC0wMS0yMiAxODoyNzowOC4wMDAwMDAwMDAgKzAwMDANCkBAIC0yMTgs
NiArMjE4LDEyIEBADQogI3VuZGVmIEhBVkVfRElSRU5UX0gNCiAjaWZkZWYg
SEFWRV9ESVJFTlRfSA0KICNpbmNsdWRlIDxkaXJlbnQuaD4NCisjaWZuZGVm
IF9ESVJFTlRfSEFWRV9EX1RZUEUNCisjaWZkZWYgRFRfVU5LTk9XTg0KKy8q
IEEgZ29vZCBpbmRpY2F0aW9uIG9mIGRfdHlwZTogc2V0IHRoZSBmb2xsb3dp
bmcgZ2xpYmMgZmxhZyAqLw0KKyNkZWZpbmUgX0RJUkVOVF9IQVZFX0RfVFlQ
RQ0KKyNlbmRpZg0KKyNlbmRpZg0KICNlbmRpZg0KIA0KICN1bmRlZiBIQVZF
X1BUSFJFQURfSA0K

--1743242027-1955856773-1201026859=:8384--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]