summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-04-12 22:28:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-04-12 22:28:45 +0000
commitafed1af6963eae2274d694eb6eaf320a0d003562 (patch)
treed3f3e1c9e46b821ac69584c8e03072fbf55a0d75
parent680dc79f17e4acf8f4bc22cada5d942c1ee1e71d (diff)
downloadpostgresql-afed1af6963eae2274d694eb6eaf320a0d003562.tar.gz
Guard against macro versions of isblank().
-rw-r--r--src/backend/libpq/hba.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c
index 80fe645c1a..f40938a0a8 100644
--- a/src/backend/libpq/hba.c
+++ b/src/backend/libpq/hba.c
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.79 2002/01/09 19:13:40 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.79.2.1 2003/04/12 22:28:45 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -57,8 +57,13 @@ static List *ident_lines = NIL; /* pre-parsed contents of ident file */
/*
* Some standard C libraries, including GNU, have an isblank() function.
- * Others, including Solaris, do not. So we have our own.
+ * Others, including Solaris, do not. So we have our own. Watch out for
+ * macro-ized versions, too.
*/
+#ifdef isblank
+#undef isblank
+#endif
+
static bool
isblank(const char c)
{