1*cf1d77f7Schristos /* $NetBSD: syslog.h,v 1.3 2021/08/14 16:14:55 christos Exp $ */ 24e6df137Slukem 32de962bdSlukem /* Generic syslog.h */ 433197c6aStron /* $OpenLDAP$ */ 52de962bdSlukem /* This work is part of OpenLDAP Software <http://www.openldap.org/>. 62de962bdSlukem * 7*cf1d77f7Schristos * Copyright 1998-2021 The OpenLDAP Foundation. 82de962bdSlukem * All rights reserved. 92de962bdSlukem * 102de962bdSlukem * Redistribution and use in source and binary forms, with or without 112de962bdSlukem * modification, are permitted only as authorized by the OpenLDAP 122de962bdSlukem * Public License. 132de962bdSlukem * 142de962bdSlukem * A copy of this license is available in file LICENSE in the 152de962bdSlukem * top-level directory of the distribution or, alternatively, at 162de962bdSlukem * <http://www.OpenLDAP.org/license.html>. 172de962bdSlukem */ 182de962bdSlukem 192de962bdSlukem #ifndef _AC_SYSLOG_H_ 202de962bdSlukem #define _AC_SYSLOG_H_ 212de962bdSlukem 222de962bdSlukem #if defined( HAVE_SYSLOG_H ) 232de962bdSlukem #include <syslog.h> 242de962bdSlukem #elif defined ( HAVE_SYS_SYSLOG_H ) 252de962bdSlukem #include <sys/syslog.h> 262de962bdSlukem #endif 272de962bdSlukem 282de962bdSlukem #if defined( LOG_NDELAY ) && defined( LOG_NOWAIT ) 292de962bdSlukem # define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY | LOG_NOWAIT ) 302de962bdSlukem #elif defined( LOG_NDELAY ) 312de962bdSlukem # define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY ) 322de962bdSlukem #elif defined( LOG_NOWAIT ) 332de962bdSlukem # define OPENLOG_OPTIONS ( LOG_PID | LOG_NOWAIT ) 342de962bdSlukem #elif defined( LOG_PID ) 352de962bdSlukem # define OPENLOG_OPTIONS ( LOG_PID ) 362de962bdSlukem #else 372de962bdSlukem # define OPENLOG_OPTIONS ( 0 ) 382de962bdSlukem #endif 392de962bdSlukem 402de962bdSlukem #endif /* _AC_SYSLOG_H_ */ 41