Skip to content
Snippets Groups Projects
Commit 13cf7262 authored by Aaron W. LaFramboise's avatar Aaron W. LaFramboise Committed by Aaron W. LaFramboise
Browse files

re PR bootstrap/17832 (Bootstrap broken by fixincludes failures)

	PR bootstrap/17832

	* fixfixes.c (main): Check for _PC_NAME_MAX.
----------------------------------------------------------------------

From-SVN: r89706
parent 0b371c72
No related branches found
No related tags found
No related merge requests found
2004-10-27 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
PR bootstrap/17832
* fixfixes.c (main): Check for _PC_NAME_MAX.
2004-10-27 Paolo Bonzini <bonzini@gnu.org>
PR other/17991
......
......@@ -778,10 +778,12 @@ main( int argc, char** argv )
doesn't allow more than one dot in the trunk of a file name. */
pz_tmp_base = basename( pz_tmptmp );
pz_tmp_dot = strchr( pz_tmp_base, '.' );
#ifdef _PC_NAME_MAX
if (pathconf( pz_tmptmp, _PC_NAME_MAX ) <= 12 /* is this DOS or Windows9X? */
&& pz_tmp_dot != (char*)NULL)
strcpy (pz_tmp_dot+1, "X"); /* nuke the original extension */
else
#endif /* _PC_NAME_MAX */
strcat (pz_tmptmp, ".X");
if (freopen (pz_tmptmp, "w", stdout) != stdout)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment