summaryrefslogtreecommitdiffstats
path: root/Modules/syslogmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-07-30 16:55:34 (GMT)
committerGuido van Rossum <guido@python.org>1996-07-30 16:55:34 (GMT)
commit63df09acfba02f3f2b8811d16e11d7143851b530 (patch)
treeeefb56e82a0fdb47c61f78b2f9e01aea17cc51cd /Modules/syslogmodule.c
parent9de624d784b20840160e4083ca4ec3e7095ccbb7 (diff)
downloadcpython-63df09acfba02f3f2b8811d16e11d7143851b530.zip
cpython-63df09acfba02f3f2b8811d16e11d7143851b530.tar.gz
cpython-63df09acfba02f3f2b8811d16e11d7143851b530.tar.bz2
Some NeXT changes (default certain symbols to others)
Diffstat (limited to 'Modules/syslogmodule.c')
-rw-r--r--Modules/syslogmodule.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c
index 06c4f34..44937fb 100644
--- a/Modules/syslogmodule.c
+++ b/Modules/syslogmodule.c
@@ -191,9 +191,21 @@ initsyslog()
DICT_SET_INT(d, "LOG_DAEMON", LOG_DAEMON);
DICT_SET_INT(d, "LOG_AUTH", LOG_AUTH);
DICT_SET_INT(d, "LOG_LPR", LOG_LPR);
+#ifdef LOG_NEWS
DICT_SET_INT(d, "LOG_NEWS", LOG_NEWS);
+#else
+ DICT_SET_INT(d, "LOG_NEWS", LOG_MAIL);
+#endif
+#ifdef LOG_UUCP
DICT_SET_INT(d, "LOG_UUCP", LOG_UUCP);
+#else
+ DICT_SET_INT(d, "LOG_UUCP", LOG_MAIL);
+#endif
+#ifdef LOG_CRON
DICT_SET_INT(d, "LOG_CRON", LOG_CRON);
+#else
+ DICT_SET_INT(d, "LOG_CRON", LOG_DAEMON);
+#endif
DICT_SET_INT(d, "LOG_LOCAL0", LOG_LOCAL0);
DICT_SET_INT(d, "LOG_LOCAL1", LOG_LOCAL1);
DICT_SET_INT(d, "LOG_LOCAL2", LOG_LOCAL2);