diff options
author | aaronwl <aaronwl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-27 20:13:57 +0000 |
---|---|---|
committer | aaronwl <aaronwl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-27 20:13:57 +0000 |
commit | 8340bfc52c2e1fc7dd6f29bb1c3782a45445a35c (patch) | |
tree | 839531b7d0b0f633ad17e99f28a34c255644f2d8 /fixincludes | |
parent | 41a9f7e90eaf5d29c8ed0ae5b1659d62d2d14887 (diff) | |
download | gcc-8340bfc52c2e1fc7dd6f29bb1c3782a45445a35c.tar.gz |
PR bootstrap/17832
* fixfixes.c (main): Check for _PC_NAME_MAX.
----------------------------------------------------------------------
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89706 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes')
-rw-r--r-- | fixincludes/ChangeLog | 6 | ||||
-rw-r--r-- | fixincludes/fixfixes.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog index 3981005c2b7..c50e4d7e1dc 100644 --- a/fixincludes/ChangeLog +++ b/fixincludes/ChangeLog @@ -1,3 +1,9 @@ +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 diff --git a/fixincludes/fixfixes.c b/fixincludes/fixfixes.c index ade3c4dc5bf..732092061a0 100644 --- a/fixincludes/fixfixes.c +++ b/fixincludes/fixfixes.c @@ -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) { |