4 * Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA
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.
17 #if defined( HAVE_SYSLOG_H )
19 #elif defined ( HAVE_SYS_SYSLOG_H )
20 #include <sys/syslog.h>
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 )
32 # define OPENLOG_OPTIONS ( 0 )
35 #endif /* _AC_SYSLOG_H_ */