We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b691c18 commit 541757fCopy full SHA for 541757f
src/bin/psql/prompt.c
@@ -12,11 +12,6 @@
12
#include <win32.h>
13
#endif
14
15
-#ifdef HAVE_UNIX_SOCKETS
16
-#include <unistd.h>
17
-#include <netdb.h>
18
-#endif
19
-
20
#include "common.h"
21
#include "common/string.h"
22
#include "input.h"
@@ -147,7 +142,6 @@ get_prompt(promptStatus_t status, ConditionalStack cstack)
147
142
if (*p == 'm')
148
143
buf[strcspn(buf, ".")] = '\0';
149
144
}
150
151
145
/* UNIX socket */
152
146
else
153
{
@@ -158,7 +152,6 @@ get_prompt(promptStatus_t status, ConditionalStack cstack)
158
159
snprintf(buf, sizeof(buf), "[local:%s]", host);
160
154
161
162
155
163
156
break;
164
157
/* DB server port number */
0 commit comments