on Windows. I'm not sure it is the best way to fix them
(see patch below.)
Mikhail Terekhov with mods by Tom Lane
*
* 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"
if (*p == 'm')
buf[strcspn(buf, ".")] = '\0';
}
+#ifndef HAVE_UNIX_SOCKETS
/* UNIX socket */
else
{
else
snprintf(buf, MAX_PROMPT_SIZE, "[local:%s]", host);
}
+#endif
}
break;
/* DB server port number */
* 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 */