aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/syslog.h
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1997-03-20 16:28:27 +0000
committerJohn Polstra <jdp@FreeBSD.org>1997-03-20 16:28:27 +0000
commitcf49f439121fc2f82f90b5a92745aa6996f0c91d (patch)
tree8ede7ffc2c6f704f93ab790d6916a9ce4748d124 /sys/sys/syslog.h
parentd00f4c321d8a1410869ed6a9c72a871068f501c7 (diff)
downloadsrc-cf49f439121fc2f82f90b5a92745aa6996f0c91d.tar.gz
src-cf49f439121fc2f82f90b5a92745aa6996f0c91d.zip
Add backward compatibility so that static executables built on
modern FreeBSD systems will syslog properly on older systems that still name the logging socket "/dev/log". This includes pre-2.2 versions of FreeBSD as well as BSD/OS systems. If the connect to "/var/run/log" fails, the function now tries to connect to "/dev/log" as a fallback.
Notes
Notes: svn path=/head/; revision=24068
Diffstat (limited to 'sys/sys/syslog.h')
-rw-r--r--sys/sys/syslog.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/syslog.h b/sys/sys/syslog.h
index cf01c03a1406..49e4e5f3d511 100644
--- a/sys/sys/syslog.h
+++ b/sys/sys/syslog.h
@@ -31,13 +31,14 @@
* SUCH DAMAGE.
*
* @(#)syslog.h 8.1 (Berkeley) 6/2/93
- * $Id: syslog.h,v 1.11 1997/02/26 06:03:20 mpp Exp $
+ * $Id: syslog.h,v 1.12 1997/03/02 09:19:15 joerg Exp $
*/
#ifndef _SYS_SYSLOG_H_
#define _SYS_SYSLOG_H_
#define _PATH_LOG "/var/run/log"
+#define _PATH_OLDLOG "/dev/log" /* backward compatibility */
/*
* priorities/facilities are encoded into a single 32-bit quantity, where the