1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-13 18:28:01 +03:00

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
This commit is contained in:
Bruce Momjian
2001-08-24 16:59:10 +00:00
parent 76a6da8a1b
commit 4142769257
2 changed files with 6 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
* *
* Copyright 2000 by PostgreSQL Global Development Group * 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 "postgres_fe.h"
#include "prompt.h" #include "prompt.h"
@@ -129,6 +129,7 @@ get_prompt(promptStatus_t status)
if (*p == 'm') if (*p == 'm')
buf[strcspn(buf, ".")] = '\0'; buf[strcspn(buf, ".")] = '\0';
} }
#ifndef HAVE_UNIX_SOCKETS
/* UNIX socket */ /* UNIX socket */
else else
{ {
@@ -139,6 +140,7 @@ get_prompt(promptStatus_t status)
else else
snprintf(buf, MAX_PROMPT_SIZE, "[local:%s]", host); snprintf(buf, MAX_PROMPT_SIZE, "[local:%s]", host);
} }
#endif
} }
break; break;
/* DB server port number */ /* DB server port number */

View File

@@ -4,14 +4,16 @@
* Interface to hba.c * Interface to hba.c
* *
* *
* $Id: hba.h,v 1.24 2001/08/16 16:24:16 momjian Exp $ * $Id: hba.h,v 1.25 2001/08/24 16:59:10 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef HBA_H #ifndef HBA_H
#define HBA_H #define HBA_H
#ifndef WIN32
#include <netinet/in.h> #include <netinet/in.h>
#endif
#define CONF_FILE "pg_hba.conf" #define CONF_FILE "pg_hba.conf"
/* Name of the config file */ /* Name of the config file */