4 * Copyright 1998-2003 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
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>.
19 #if defined( HAVE_SYSLOG_H )
21 #elif defined ( HAVE_SYS_SYSLOG_H )
22 #include <sys/syslog.h>
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 )
34 # define OPENLOG_OPTIONS ( 0 )
37 #endif /* _AC_SYSLOG_H_ */