aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-02-07 17:03:07 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-02-07 17:03:07 +0000
commit737b89c60586b61a6fd0fda5f0de05bc6ba3bf6a (patch)
treec9e1fe80c2b2ef1a484277f96bf80b17296d45ae /conf.c
parent0f91f0a71f073b5689ace6504cc62162e234ac79 (diff)
downloadfetchmail-737b89c60586b61a6fd0fda5f0de05bc6ba3bf6a.tar.gz
fetchmail-737b89c60586b61a6fd0fda5f0de05bc6ba3bf6a.tar.bz2
fetchmail-737b89c60586b61a6fd0fda5f0de05bc6ba3bf6a.zip
FreeBSD support.
svn path=/trunk/; revision=2376
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c8
1 files changed, 5 insertions, 3 deletions
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);