Browse Source

Fixed the solaris build (log.h); fixed an inappropriate comment

Noriko Hosoi 20 years ago
parent
commit
337c6c4965
2 changed files with 3 additions and 1 deletions
  1. 1 1
      ldap/servers/slapd/log.c
  2. 2 0
      ldap/servers/slapd/log.h

+ 1 - 1
ldap/servers/slapd/log.c

@@ -2491,7 +2491,7 @@ log__fix_rotationinfof(char *pathname)
 		loginfo.log_audit_logchain = NULL;
 		break;
 	}
-	/* read the directory entries into an ascii sorted avl tree */
+	/* read the directory entries into a linked list */
 	for (dirent = PR_ReadDir(dirptr, dirflags); dirent ;
 		dirent = PR_ReadDir(dirptr, dirflags)) {
 		if (0 == strcmp(log_type, dirent->name)) {

+ 2 - 0
ldap/servers/slapd/log.h

@@ -43,8 +43,10 @@
  *
  *************************************************************************/
 #include <stdio.h>
+#ifdef LINUX
 #define _XOPEN_SOURCE /* glibc2 needs this */
 #define __USE_XOPEN
+#endif
 #include <time.h>
 #include <stdarg.h>
 #include <sys/types.h>