mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Add c.h to exclusion list.
This commit is contained in:
		@@ -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 | 
 | 
					find . \( -name CVS -a -prune \) -o -type f -print | 
 | 
				
			||||||
grep -v '\./postgres.h' |
 | 
					grep -v '\./postgres.h' |
 | 
				
			||||||
grep -v '\./config.h' |
 | 
					grep -v '\./config.h' |
 | 
				
			||||||
 | 
					grep -v '\./c.h' |
 | 
				
			||||||
while read FILE
 | 
					while read FILE
 | 
				
			||||||
do
 | 
					do
 | 
				
			||||||
	if [ "`echo $FILE | sed -n 's/^.*\.\([^\.]*\)$/\1/p'`" = "h" ]
 | 
						if [ "`echo $FILE | sed -n 's/^.*\.\([^\.]*\)$/\1/p'`" = "h" ]
 | 
				
			||||||
@@ -22,6 +23,7 @@ do
 | 
				
			|||||||
		[ -s /usr/include/$INCLUDE ] && continue
 | 
							[ -s /usr/include/$INCLUDE ] && continue
 | 
				
			||||||
		[ "$INCLUDE" = postgres.h ] && continue
 | 
							[ "$INCLUDE" = postgres.h ] && continue
 | 
				
			||||||
		[ "$INCLUDE" = config.h ] && continue
 | 
							[ "$INCLUDE" = config.h ] && continue
 | 
				
			||||||
 | 
							[ "$INCLUDE" = c.h ] && continue
 | 
				
			||||||
		# preserve configure-specific includes
 | 
							# preserve configure-specific includes
 | 
				
			||||||
		grep -B1 '^#include[ 	][ 	]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
 | 
							grep -B1 '^#include[ 	][ 	]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
 | 
				
			||||||
		     egrep -q '^#if|^#else' && continue		
 | 
							     egrep -q '^#if|^#else' && continue		
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user