]> git.sur5r.net Git - openldap/blob - include/ac/syslog.h
Add prototypes for strerror/strerror_r.
[openldap] / include / ac / syslog.h
1 /*
2  * Generic syslog.h
3  */
4 /*
5  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms are permitted only
9  * as authorized by the OpenLDAP Public License.  A copy of this
10  * license is available at http://www.OpenLDAP.org/license.html or
11  * in file LICENSE in the top-level directory of the distribution.
12  */
13 #ifndef _AC_SYSLOG_H_
14 #define _AC_SYSLOG_H_
15
16 #if defined( HAVE_SYSLOG_H )
17 #include <syslog.h>
18 #elif defined ( HAVE_SYS_SYSLOG_H )
19 #include <sys/syslog.h>
20 #endif
21
22 #if defined( LOG_NDELAY ) && defined( LOG_NOWAIT )
23 #       define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY | LOG_NOWAIT )
24 #elif defined( LOG_NDELAY )
25 #       define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY )
26 #elif defined( LOG_NOWAIT )
27 #       define OPENLOG_OPTIONS ( LOG_PID | LOG_NOWAIT )
28 #elif defined( LOG_PID )
29 #       define OPENLOG_OPTIONS ( LOG_PID )
30 #else
31 #   define OPENLOG_OPTIONS ( 0 )
32 #endif
33
34 #endif /* _AC_SYSLOG_H_ */