Skip to content

Commit 562f63b

Browse files
committed
Fix build failure when not USE_READLINE. Sergey E. Koposov
1 parent 589b67d commit 562f63b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bin/psql/input.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.48 2006/02/12 05:24:38 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.49 2006/02/13 14:57:15 tgl Exp $
77
*/
88
#include "postgres_fe.h"
99

@@ -213,7 +213,8 @@ gets_fromFile(FILE *source)
213213
}
214214

215215

216-
static void encode_history()
216+
#ifdef USE_READLINE
217+
static void encode_history(void)
217218
{
218219
HIST_ENTRY *cur_hist;
219220
char *cur_ptr;
@@ -225,7 +226,7 @@ static void encode_history()
225226
*cur_ptr = NL_IN_HISTORY;
226227
}
227228

228-
static void decode_history()
229+
static void decode_history(void)
229230
{
230231
HIST_ENTRY *cur_hist;
231232
char *cur_ptr;
@@ -236,6 +237,7 @@ static void decode_history()
236237
if (*cur_ptr == NL_IN_HISTORY)
237238
*cur_ptr = '\n';
238239
}
240+
#endif /* USE_READLINE */
239241

240242

241243
/*
@@ -290,7 +292,6 @@ initializeInput(int flags)
290292
}
291293

292294

293-
294295
bool
295296
saveHistory(char *fname)
296297
{
@@ -311,7 +312,6 @@ saveHistory(char *fname)
311312
}
312313

313314

314-
315315
static void
316316
#ifdef HAVE_ATEXIT
317317
finishInput(void)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy