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