Commit fd9287ae by Jim Wilson

(sys/types.h): Check for [ \t]size_t not size_t.

From-SVN: r2830
parent 6102fe95
...@@ -333,7 +333,8 @@ EOF ...@@ -333,7 +333,8 @@ EOF
fi fi
fi fi
# Fix this file to avoid interfering with stddef.h. # Fix this file to avoid interfering with stddef.h, but don't mistakenly
# match e.g. ssize_t present in AIX for the ps/2.
file=sys/types.h file=sys/types.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
...@@ -343,7 +344,7 @@ fi ...@@ -343,7 +344,7 @@ fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
echo Fixing $file echo Fixing $file
ex ${LIB}/$file <<EOF ex ${LIB}/$file <<EOF
/typedef.*size_t.*;/ /typedef.*[ ]size_t.*;/
i i
#ifndef _GCC_SIZE_T #ifndef _GCC_SIZE_T
#define _GCC_SIZE_T #define _GCC_SIZE_T
......
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