]> git.sur5r.net Git - openldap/blobdiff - include/ac/syslog.h
Blindly added Autoconf support to ldapd.
[openldap] / include / ac / syslog.h
index d5d4e26201fbe9266ac4b22503a27d9ac0cf2215..c7afb100ba003881e5364a9ac8e718c548919510 100644 (file)
@@ -4,8 +4,11 @@
 #ifndef _AC_SYSLOG_H_
 #define _AC_SYSLOG_H_
 
-#ifdef HAVE_SYSLOG_H
+#if defined( HAVE_SYSLOG_H )
 #include <syslog.h>
+#elif defined ( HAVE_SYS_SYSLOG_H )
+#include <sys/syslog.h>
+#endif
 
 #if defined( LOG_NDELAY ) && defined( LOG_NOWAIT )
 #      define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY | LOG_NOWAIT )
@@ -17,6 +20,4 @@
 #      define OPENLOG_OPTIONS ( LOG_PID )
 #endif
 
-#endif /* syslog.h */
-
 #endif /* _AC_SYSLOG_H_ */