No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / openldap / dist / include / ac / syslog.h
bloba78578178f7acdf4477b9feb674aa4a314def549
1 /* Generic syslog.h */
2 /* $OpenLDAP: pkg/ldap/include/ac/syslog.h,v 1.17.2.3 2008/02/11 23:26:40 kurt Exp $ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 1998-2008 The OpenLDAP Foundation.
6 * All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
10 * Public License.
12 * A copy of this license is available in file LICENSE in the
13 * top-level directory of the distribution or, alternatively, at
14 * <http://www.OpenLDAP.org/license.html>.
17 #ifndef _AC_SYSLOG_H_
18 #define _AC_SYSLOG_H_
20 #if defined( HAVE_SYSLOG_H )
21 #include <syslog.h>
22 #elif defined ( HAVE_SYS_SYSLOG_H )
23 #include <sys/syslog.h>
24 #endif
26 #if defined( LOG_NDELAY ) && defined( LOG_NOWAIT )
27 # define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY | LOG_NOWAIT )
28 #elif defined( LOG_NDELAY )
29 # define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY )
30 #elif defined( LOG_NOWAIT )
31 # define OPENLOG_OPTIONS ( LOG_PID | LOG_NOWAIT )
32 #elif defined( LOG_PID )
33 # define OPENLOG_OPTIONS ( LOG_PID )
34 #else
35 # define OPENLOG_OPTIONS ( 0 )
36 #endif
38 #endif /* _AC_SYSLOG_H_ */