aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-07-17 15:37:30 +0000
committerBruce Momjian <bruce@momjian.us>1999-07-17 15:37:30 +0000
commit0e264fb46405e6eff2e83e3dfdc3307bf5e9b0b9 (patch)
tree68fa0bd175462e7b137c84f24ada5dc7b29b88a8 /src
parent9b4dac7f12bae718938083e03d5afde755e95dff (diff)
downloadpostgresql-0e264fb46405e6eff2e83e3dfdc3307bf5e9b0b9.tar.gz
postgresql-0e264fb46405e6eff2e83e3dfdc3307bf5e9b0b9.zip
Add c.h to exclusion list.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/pginclude/pgnoinclude2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/pginclude/pgnoinclude b/src/tools/pginclude/pgnoinclude
index fbcee03e1d7..db39e9a1d9e 100755
--- a/src/tools/pginclude/pgnoinclude
+++ b/src/tools/pginclude/pgnoinclude
@@ -3,6 +3,7 @@ trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
find . \( -name CVS -a -prune \) -o -type f -print |
grep -v '\./postgres.h' |
grep -v '\./config.h' |
+grep -v '\./c.h' |
while read FILE
do
if [ "`echo $FILE | sed -n 's/^.*\.\([^\.]*\)$/\1/p'`" = "h" ]
@@ -22,6 +23,7 @@ do
[ -s /usr/include/$INCLUDE ] && continue
[ "$INCLUDE" = postgres.h ] && continue
[ "$INCLUDE" = config.h ] && continue
+ [ "$INCLUDE" = c.h ] && continue
# preserve configure-specific includes
grep -B1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
egrep -q '^#if|^#else' && continue