diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-10-19 12:39:48 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-10-19 12:39:48 +0200 |
commit | 0a24b3afc093e16038da170458e2ecb68b363bdd (patch) | |
tree | 5100ee6753a221a079e332e52613845471bfc92f /tools | |
parent | 7cdc7cbaa055c84b463d5fba4457036e249828a1 (diff) | |
download | rsyslog-0a24b3afc093e16038da170458e2ecb68b363bdd.tar.gz rsyslog-0a24b3afc093e16038da170458e2ecb68b363bdd.tar.xz rsyslog-0a24b3afc093e16038da170458e2ecb68b363bdd.zip |
fixing some compile problems on FreeBSD
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ompipe.c | 1 | ||||
-rw-r--r-- | tools/omusrmsg.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/ompipe.c b/tools/ompipe.c index 5fb9b27e..541b6552 100644 --- a/tools/ompipe.c +++ b/tools/ompipe.c @@ -39,6 +39,7 @@ #include <string.h> #include <assert.h> #include <errno.h> +#include <unistd.h> #include <sys/file.h> #include "syslogd.h" diff --git a/tools/omusrmsg.c b/tools/omusrmsg.c index e788a006..e61751dc 100644 --- a/tools/omusrmsg.c +++ b/tools/omusrmsg.c @@ -143,7 +143,7 @@ void setutent(void) { assert(BSD_uf == NULL); if ((BSD_uf = fopen(_PATH_UTMP, "r")) == NULL) { - errmsg.LogError(NO_ERRCODE, "%s", _PATH_UTMP); + errmsg.LogError(0, NO_ERRCODE, "%s", _PATH_UTMP); return; } } |