summaryrefslogtreecommitdiff
path: root/common/gdm-log.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2007-04-04 09:51:00 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2007-04-04 09:51:00 +0000
commitd1c5c14ce39c79c9a723e04be1440de7e3201845 (patch)
tree20a3f382a9e79876bfc56fddef3babb068b8d7cc /common/gdm-log.c
parent5a22f79062e214796c55cd9756cda82a54c52ca6 (diff)
downloadgdm-d1c5c14ce39c79c9a723e04be1440de7e3201845.tar.gz
Fix building on Solaris.
2007-04-04 William Jon McCann <mccann@jhu.edu> * common/gdm-log.c: (gdm_log_init): * daemon/misc.h: Fix building on Solaris. svn path=/trunk/; revision=4765
Diffstat (limited to 'common/gdm-log.c')
-rw-r--r--common/gdm-log.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/gdm-log.c b/common/gdm-log.c
index 9182359e..bc7ecfb2 100644
--- a/common/gdm-log.c
+++ b/common/gdm-log.c
@@ -166,12 +166,18 @@ void
gdm_log_init (void)
{
const char *prg_name;
+ int options;
g_log_set_default_handler (gdm_log_default_handler, NULL);
prg_name = g_get_prgname ();
- openlog (prg_name, LOG_PERROR|LOG_PID, LOG_DAEMON);
+ options = LOG_PID;
+#ifdef LOG_PERROR
+ options |= LOG_PERROR;
+#endif
+
+ openlog (prg_name, options, LOG_DAEMON);
initialized = TRUE;
}