Commit 86944ea4 by Ian Lance Taylor

Add extern "C" to <sys/mman.h> on HP/UX.

From-SVN: r12872
parent 0df15c2c
......@@ -2294,16 +2294,16 @@ struct exception;
fi
fi
# assert.h on HP/UX is not C++ ready, even though NO_IMPLICIT_EXTERN_C
# is defined on HP/UX.
file=assert.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
# assert.h and sys/mman.h on HP/UX are not C++ ready, even though
# NO_IMPLICIT_EXTERN_C is defined on HP/UX.
for file in assert.h sys/mman.h; do
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi
fi
if [ -r ${LIB}/$file ]; then
if [ -r ${LIB}/$file ]; then
if egrep '"C"' ${LIB}/$file >/dev/null 2>&1 \
|| egrep '__BEGIN_DECLS' ${LIB}/$file >/dev/null 2>&1; then
true
......@@ -2317,6 +2317,7 @@ extern "C" {
}
#endif' >> ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
fi
if cmp $file ${LIB}/$file >/dev/null 2>&1; then
rm -f ${LIB}/$file
else
......@@ -2327,7 +2328,7 @@ extern "C" {
done
fi
fi
fi
done
# check for broken assert.h that needs stdio.h or stdlib.h
file=assert.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment