From 1c5bb34012d023359cea6f5963e228fdbf59c533 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 12 Mar 2007 17:28:44 +0000 Subject: [PATCH] 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 --- lcr/lcr_ifact.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lcr/lcr_ifact.c b/lcr/lcr_ifact.c index 2ce0e45a..2343d2f8 100644 --- a/lcr/lcr_ifact.c +++ b/lcr/lcr_ifact.c @@ -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);