summaryrefslogtreecommitdiff
path: root/src/bin/psql/prompt.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-08-24 16:59:10 +0000
committerBruce Momjian <bruce@momjian.us>2001-08-24 16:59:10 +0000
commit41427692577801580562aeaee2164c54db2257eb (patch)
tree4ddfba0805461ff25dba8089274e593d527b8916 /src/bin/psql/prompt.c
parent76a6da8a1b01e23091da65f5e167d67f5274d740 (diff)
There are two problems when compiling libpq.dll and psql.exe
on Windows. I'm not sure it is the best way to fix them (see patch below.) Mikhail Terekhov with mods by Tom Lane
Diffstat (limited to 'src/bin/psql/prompt.c')
-rw-r--r--src/bin/psql/prompt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/psql/prompt.c b/src/bin/psql/prompt.c
index 974e97022d6..e0b98c1a59c 100644
--- a/src/bin/psql/prompt.c
+++ b/src/bin/psql/prompt.c
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.19 2001/05/06 17:21:11 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.20 2001/08/24 16:59:10 momjian Exp $
*/
#include "postgres_fe.h"
#include "prompt.h"
@@ -129,6 +129,7 @@ get_prompt(promptStatus_t status)
if (*p == 'm')
buf[strcspn(buf, ".")] = '\0';
}
+#ifndef HAVE_UNIX_SOCKETS
/* UNIX socket */
else
{
@@ -139,6 +140,7 @@ get_prompt(promptStatus_t status)
else
snprintf(buf, MAX_PROMPT_SIZE, "[local:%s]", host);
}
+#endif
}
break;
/* DB server port number */