diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-02-28 18:33:08 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-02-28 18:33:08 +0100 |
commit | f12a1995e42d098217fef22cba6e7158ed76e635 (patch) | |
tree | 2be50d6ca7fcef1d6dd767962fbd8ffdaf3ca73d /tools | |
parent | 8750f48390262e0b75b37a43b2d66e5e1c0ca2c3 (diff) | |
download | rsyslog-f12a1995e42d098217fef22cba6e7158ed76e635.tar.gz rsyslog-f12a1995e42d098217fef22cba6e7158ed76e635.tar.xz rsyslog-f12a1995e42d098217fef22cba6e7158ed76e635.zip |
bugfix: fixed problem that caused compilation on FreeBSD 9.0 to fail.
bugtracker: http://bugzilla.adiscon.com/show_bug.cgi?id=181
Thanks to Christiano for reporting.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/omusrmsg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/omusrmsg.c b/tools/omusrmsg.c index 499a11dd..fe3fb4d4 100644 --- a/tools/omusrmsg.c +++ b/tools/omusrmsg.c @@ -50,7 +50,11 @@ #include <assert.h> #include <signal.h> #include <sys/param.h> -#include <utmp.h> +#ifdef HAVE_UTMP_X_H +# include <utmpx.h> +#else +# include <utmp.h> +#endif #include <unistd.h> #include <sys/uio.h> #include <sys/stat.h> |