Просмотр исходного кода

Patch to allow BSD/Linux systems to compile with latest Solaris porting patch.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1354 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 19 лет назад
Родитель
Сommit
1c5bb34012
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lcr/lcr_ifact.c

+ 2 - 2
lcr/lcr_ifact.c

@@ -264,7 +264,7 @@ static int ldso_path_build (char *path, char *filename)
 	return (0);
 	return (0);
 }
 }
 
 
-#ifndef HAVE_SCANDIR
+#if defined (OPENAIS_SOLARIS) && !defined(HAVE_SCANDIR)
 static int scandir (
 static int scandir (
 	const char *dir, struct dirent ***namelist,
 	const char *dir, struct dirent ***namelist,
 	int (*filter)(const struct dirent *),
 	int (*filter)(const struct dirent *),
@@ -333,7 +333,7 @@ fail:
 }
 }
 #endif
 #endif
 
 
-#ifndef HAVE_ALPHASORT
+#if defined (OPENAIS_SOLARIS) && !defined(HAVE_ALPHASORT)
 static int alphasort (const struct dirent **a, const struct dirent **b)
 static int alphasort (const struct dirent **a, const struct dirent **b)
 {
 {
 	return strcmp ((*a)->d_name, (*b)->d_name);
 	return strcmp ((*a)->d_name, (*b)->d_name);