]> git.sur5r.net Git - openldap/blob - include/ac/syslog.h
Cleanup NT service support declarations
[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.  A copy of this license is available at
10  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
11  * top-level directory of the distribution.
12  */
13
14 #ifndef _AC_SYSLOG_H_
15 #define _AC_SYSLOG_H_
16
17 #if defined( HAVE_SYSLOG_H )
18 #include <syslog.h>
19 #elif defined ( HAVE_SYS_SYSLOG_H )
20 #include <sys/syslog.h>
21 #endif
22
23 #if defined( LOG_NDELAY ) && defined( LOG_NOWAIT )
24 #       define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY | LOG_NOWAIT )
25 #elif defined( LOG_NDELAY )
26 #       define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY )
27 #elif defined( LOG_NOWAIT )
28 #       define OPENLOG_OPTIONS ( LOG_PID | LOG_NOWAIT )
29 #elif defined( LOG_PID )
30 #       define OPENLOG_OPTIONS ( LOG_PID )
31 #else
32 #   define OPENLOG_OPTIONS ( 0 )
33 #endif
34
35 #endif /* _AC_SYSLOG_H_ */