Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 45a4309

Browse files
committed
Add libpq include directory to script.
1 parent cb33de7 commit 45a4309

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/pginclude/pgcompinclude

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:
22
# report which #include files can not compile on their own
33
# takes -v option to display compile failure message and line numbers
4-
# $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.5 2006/07/10 18:39:32 momjian Exp $
4+
# $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.6 2006/07/11 02:01:24 momjian Exp $
55

66
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a" 0 1 2 3 15
77
find . \( -name CVS -a -prune \) -o -name '*.h' -type f -print | while read FILE
@@ -14,7 +14,7 @@ do
1414
pgdefine "$FILE" >>/tmp/$$.c
1515
echo "}" >>/tmp/$$.c
1616
cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations \
17-
-I/pg/include -I/pg/backend -I`dirname $FILE` -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
17+
-I/pg/include -I/pg/backend -I/pg/interfaces/libpq -I`dirname $FILE` -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
1818
if [ "$?" -ne 0 ]
1919
then echo "$FILE"
2020
if [ "$1" = "-v" ]

0 commit comments

Comments
 (0)