summaryrefslogtreecommitdiffabout
path: root/src/wydawca.c
Side-by-side diff
Diffstat (limited to 'src/wydawca.c') (more/less context) (show whitespace changes)
-rw-r--r--src/wydawca.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index 69fb898..521d796 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -325,19 +325,33 @@ wydawca_daemon ()
remove_pidfile ();
}
#include "cmdline.h"
+void
+version_hook (FILE *stream)
+{
+ printf ("Compiled with:");
+#ifdef WITH_LIBWRAP
+ printf (" libwrap");
+#endif
+#ifdef WITH_INOTIFY
+ printf (" inotify");
+#endif
+ putchar ('\n');
+}
+
int
main (int argc, char **argv)
{
struct grecs_node *tree;
const char *p;
program_name = argv[0];
+ print_version_hook = version_hook;
mu_register_all_mailer_formats ();
mu_stdstream_setup (MU_STDSTREAM_RESET_NONE);
config_init ();
x_argv = argv;
parse_options (argc, argv);

Return to:

Send suggestions and report system problems to the System administrator.