Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/syslog.cc')
-rw-r--r--winsup/cygwin/syslog.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc
index 2acf7e133..c11ff1170 100644
--- a/winsup/cygwin/syslog.cc
+++ b/winsup/cygwin/syslog.cc
@@ -300,10 +300,10 @@ syslog (int priority, const char *message, ...)
return;
}
- if (!iswinnt)
+ if (!wincap.has_eventlog ())
{
- /* Add a priority string - not needed for NT
- as NT has its own priority codes. */
+ /* Add a priority string - not needed for systems with
+ eventlog capability. */
switch (LOG_PRI (priority))
{
case LOG_ERR:
@@ -336,7 +336,7 @@ syslog (int priority, const char *message, ...)
msg_strings[0] = total_msg;
- if (iswinnt)
+ if (wincap.has_eventlog ())
{
/* For NT, open the event log and send the message */
HANDLE hEventSrc = RegisterEventSourceA (NULL, (process_ident != NULL) ?