From: Bryan Henderson Date: Mon, 28 Oct 1996 09:03:50 +0000 (+0000) Subject: Make a local isblank() function, since not all standard C libraries have it. X-Git-Tag: REL2_0~364 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa1eac7979fc4fa1c74813fcdc44b8dbb166317f;p=postgresql Make a local isblank() function, since not all standard C libraries have it. For sparc_solaris, add inet_aton prototype, since it isn't in the header files included for the standard C library functions. --- diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c index 8d75652ab6..01ea7b5a4d 100644 --- a/src/backend/libpq/hba.c +++ b/src/backend/libpq/hba.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.2 1996/10/13 18:37:19 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.3 1996/10/28 09:03:50 bryanh Exp $ * *------------------------------------------------------------------------- */ @@ -15,11 +15,13 @@ #include #include #include -#include /* isspace() declaration */ #include #include #include #include +#if PORTNAME == sparc_solaris +#include +#endif #include #include @@ -52,6 +54,14 @@ enum Userauth {Trust, Ident}; +/* Some standard C libraries, including GNU, have an isblank() function. + Others, including Solaris, do not. So we have our own. +*/ +bool +isblank(const char c) { + return(c == ' ' || c == 9 /* tab */); +} + static void