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
This commit is contained in:
Steven Dake 2007-03-12 17:28:44 +00:00
parent cb154572a2
commit 1c5bb34012

View File

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