]> granicus.if.org Git - postgresql/commitdiff
There are two problems when compiling libpq.dll and psql.exe
authorBruce Momjian <bruce@momjian.us>
Fri, 24 Aug 2001 16:59:10 +0000 (16:59 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 24 Aug 2001 16:59:10 +0000 (16:59 +0000)
on Windows. I'm not sure it is the best way to fix them
(see patch below.)

Mikhail Terekhov with mods by Tom Lane

src/bin/psql/prompt.c
src/include/libpq/hba.h

index 974e97022d634f9accefdf23856466caf6102c52..e0b98c1a59cfef9edb28e5fbf12a8c5f200173e1 100644 (file)
@@ -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 */
index da506d7aee8e27cca3bd0c80393a446d6394c93f..02eee16d9a01f11a03f827eb85ea549346d8ed87 100644 (file)
@@ -4,14 +4,16 @@
  *       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
 #define HBA_H
 
+#ifndef WIN32
 #include <netinet/in.h>
+#endif
 
 #define CONF_FILE "pg_hba.conf"
  /* Name of the config file  */