From 737b89c60586b61a6fd0fda5f0de05bc6ba3bf6a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 7 Feb 1999 17:03:07 +0000 Subject: FreeBSD support. svn path=/trunk/; revision=2376 --- conf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index b12c8d76..e7f9f9c9 100644 --- a/conf.c +++ b/conf.c @@ -132,8 +132,10 @@ void dump_config(struct runctl *runp, struct query *querylist) * We need this in order to know whether `interface' and `monitor' * are valid options or not. */ -#ifdef linux +#if defined(linux) fputs("os_type = 'linux'\n", stdout); +#elif defined(__FreeBSD__) + fputs("os_type = 'freebsd'\n", stdout); #else fputs("os_type = 'generic'\n", stdout); #endif @@ -275,10 +277,10 @@ void dump_config(struct runctl *runp, struct query *querylist) listdump("aka", ctl->server.akalist); listdump("localdomains", ctl->server.localdomains); -#ifdef linux +#if defined(linux) || defined(__FreeBSD__) stringdump("interface", ctl->server.interface); stringdump("monitor", ctl->server.monitor); -#endif /* linux */ +#endif /* linux || __FreeBSD__ */ stringdump("plugin", ctl->server.plugin); stringdump("plugout", ctl->server.plugout); -- cgit v1.2.3