Răsfoiți Sursa

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
Steven Dake 16 ani în urmă
părinte
comite
1bd8aba6bb
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      exec/coroparse.c

+ 1 - 1
exec/coroparse.c

@@ -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;