diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-10-18 16:24:40 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-10-18 16:24:40 +0000 |
commit | 0060b3c8eb66bbcfb11e763bb33dcc08857370d2 (patch) | |
tree | 93f4969ace18bb0670dac96deeda5b0f580f1db5 /src/bin/psql/variables.c | |
parent | a9a2c394b83bb203544dd739dee4a7281e204a33 (diff) | |
download | postgresql-0060b3c8eb66bbcfb11e763bb33dcc08857370d2.tar.gz postgresql-0060b3c8eb66bbcfb11e763bb33dcc08857370d2.zip |
The attached patch fixes psql's win32 frontend-only build, by using
pg_strcasecmp in variables.c, and #ifdef'ing out PostmasterPid in
miscadmin.h.
Dave Page
Diffstat (limited to 'src/bin/psql/variables.c')
-rw-r--r-- | src/bin/psql/variables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/variables.c b/src/bin/psql/variables.c index b244a7fa1ee..2e0ac69dbd1 100644 --- a/src/bin/psql/variables.c +++ b/src/bin/psql/variables.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2004, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/variables.c,v 1.19 2004/10/15 05:02:31 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/variables.c,v 1.20 2004/10/18 16:24:38 momjian Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -51,7 +51,7 @@ GetVariableBool(VariableSpace space, const char *name) val = GetVariable(space, name); if (val == NULL) return false; /* not set -> assume "off" */ - if (strcasecmp(val, "off") == 0) + if (pg_strcasecmp(val, "off") == 0) return false; /* accept "off" or "OFF" as true */ /* |