Change NAME_MAX to FILENAME_MAX to compile properly on Posix OS.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2219 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Steven Dake 2009-06-07 07:36:11 +00:00
parent 71f21b95c5
commit 1bd8aba6bb

View File

@ -214,7 +214,7 @@ static int read_uidgid_files_into_objdb(
const char *dirname;
DIR *dp;
struct dirent *dirent;
char filename[PATH_MAX + NAME_MAX + 1];
char filename[PATH_MAX + FILENAME_MAX + 1];
int res = 0;
struct stat stat_buf;