diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-07-22 05:45:31 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-07-22 05:45:31 +0000 |
commit | 051b975659948f65040ce0a5a97b72f21b39b9ec (patch) | |
tree | cb3ae195f34b01f3d4e7fba251511b969338b55e /gcc/fixinc.svr4 | |
parent | cbb9d44318740618f5e0400afd94b691b546a153 (diff) | |
download | gcc-051b975659948f65040ce0a5a97b72f21b39b9ec.tar.gz |
When fixing ftw.h, preserve remainder of
ftw and nftw declaration; don't just rewrite it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4965 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.svr4')
-rwxr-xr-x | gcc/fixinc.svr4 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index 6c1d4aaa75b..79a2508e145 100755 --- a/gcc/fixinc.svr4 +++ b/gcc/fixinc.svr4 @@ -432,20 +432,20 @@ else echo Checking $file_to_fix cp $file_to_fix /tmp/$base chmod +w /tmp/$base - sed -e '/^extern int ftw(const/c\ + sed -e '/^extern int ftw(const/i\ #if !defined(_STYPES)\ static\ #else\ extern\ -#endif\ - int ftw(const char *, int (*)(const char *, const struct stat *, int), int);' \ - -e '/^extern int nftw/c\ +#endif'\ + -e 's/extern \(int ftw(const.*\)$/\1/' \ + -e '/^extern int nftw/i\ #if defined(_STYPES)\ static\ #else\ extern\ -#endif\ - int nftw(const char *, int (*)(const char *, const struct stat *, int, struct FTW *),int, int);' \ +#endif'\ + -e 's/extern \(int nftw.*\)$/\1/' \ -e '/^extern int ftw(),/c\ #if !defined(_STYPES)\ static\ |