From: SourceForge.net <no...@so...> - 2004-07-31 22:55:42
|
Bugs item #1001325, was opened at 2004-07-31 15:55 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1001325&group_id=10894 Category: 47. Threading Group: current: 8.4.7 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Andreas Kupries (andreas_kupries) Summary: readdir_r() is different on IRIX 5.3 Initial Comment: When compiling tcl 8.4.7 on IRIX 5.3 with --enable-threads one ends up with cfe: Error: ./../unix/tclUnixThrd.c, line 837: The number of arguments doesn't agree with the number in the declaration. if (readdir_r (dir, ent, &ent) != 0) { ------------------^ *** Error code 1 (bu21) This is because on IRIX 5.3 readdir_r() is struct dirent *readdir_r (DIR *dirp, struct dirent *res); unix/tclUnixThrd.c thushas to be changed on IRIX 5.3 into #ifdef HAVE_READDIR_R ent = &tsdPtr->rdbuf.ent; /* if (TclOSreaddir_r(dir, ent, &ent) != 0) { ent = NULL; } */ ent=TclOSreaddir_r(dir, ent); #else /* !HAVE_READDIR_R */ ideally the configure tools should detect which version of readdir_r is being used on a given platform. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1001325&group_id=10894 |