aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2009-08-14 13:37:07 +0200
committerTobias Brunner <tobias@strongswan.org>2009-08-14 13:37:07 +0200
commita3ccf95f3ffd67ae955a5641921240344b6aadd6 (patch)
treeea02468030d5244cd356a37854b8162286541f57 /src
parent3901937d142cc9dc81ee22d99c8c596e9317c139 (diff)
downloadstrongswan-a3ccf95f3ffd67ae955a5641921240344b6aadd6.tar.bz2
strongswan-a3ccf95f3ffd67ae955a5641921240344b6aadd6.tar.xz
LOG_AUTHPRIV is not defined on OpenSolaris.
Diffstat (limited to 'src')
-rw-r--r--src/charon/daemon.c4
-rw-r--r--src/starter/loglite.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/charon/daemon.c b/src/charon/daemon.c
index 973f6b6b8..644611170 100644
--- a/src/charon/daemon.c
+++ b/src/charon/daemon.c
@@ -42,6 +42,10 @@
#include <config/traffic_selector.h>
#include <config/proposal.h>
+#ifndef LOG_AUTHPRIV /* not defined on OpenSolaris */
+#define LOG_AUTHPRIV LOG_AUTH
+#endif
+
typedef struct private_daemon_t private_daemon_t;
/**
diff --git a/src/starter/loglite.c b/src/starter/loglite.c
index 415cf931c..c88b33bfd 100644
--- a/src/starter/loglite.c
+++ b/src/starter/loglite.c
@@ -33,6 +33,10 @@
#include <log.h>
#include <whack.h>
+#ifndef LOG_AUTHPRIV
+#define LOG_AUTHPRIV LOG_AUTH
+#endif
+
bool
log_to_stderr = FALSE, /* should log go to stderr? */
log_to_syslog = TRUE; /* should log go to syslog? */