Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ef0c2739
Commit
ef0c2739
authored
Jun 05, 1997
by
Brendan Kehoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixinc.irix: Add declaration of __vfork to unistd.h.
From-SVN: r14159
parent
67de45a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
3 deletions
+32
-3
gcc/fixinc.irix
+32
-3
No files found.
gcc/fixinc.irix
View file @
ef0c2739
...
...
@@ -55,9 +55,9 @@ echo 'Building fixincludes in ' ${LIB}
#
# Note: For Irix, we deliberately don't try to create the directory trees,
# since we only modify math.h
and limits.h. If we ADD ANY OTHERS,
#
the "Making directories:" and symlinks code from fixinc.svr4 may
#
have to go back in.
# since we only modify math.h
, limits.h and unistd.h. If we
#
ADD ANY OTHERS, the "Making directories:" and symlinks code from
#
fixinc.svr4 may
have to go back in.
# The Irix math.h defines struct exception, which conflicts with
# the class exception defined in the C++ file std/stdexcept.h. We
...
...
@@ -158,4 +158,33 @@ if [ \! -z "$file_to_fix" ]; then
rm
-f
/tmp/
$base
fi
# The Irix unistd.h will introduce a call to __vfork in its libc, but the
# function is never actually prototyped.
file
=
unistd.h
base
=
`
basename
$file
`
if
[
-r
${
LIB
}
/
$file
]
;
then
file_to_fix
=
${
LIB
}
/
$file
else
if
[
-r
${
INPUT
}
/
$file
]
;
then
file_to_fix
=
${
INPUT
}
/
$file
else
file_to_fix
=
""
fi
fi
if
[
\!
-z
"
$file_to_fix
"
]
;
then
echo
Checking
$file_to_fix
sed
-e
'/__vfork/i\
extern pid_t __vfork(void);'
\
$file_to_fix
>
/tmp/
$base
if
cmp
$file_to_fix
/tmp/
$base
>
/dev/null 2>&1
;
then
\
true
else
echo
Fixed
$file_to_fix
rm
-f
${
LIB
}
/
$file
cp /tmp/
$base
${
LIB
}
/
$file
chmod a+r
${
LIB
}
/
$file
fi
rm
-f
/tmp/
$base
fi
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment