mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Why can't everyone be standard? :(
Add some code to make psql happy with a system where there is *no* history code available, but there is readline code...
This commit is contained in:
@@ -23,6 +23,16 @@
|
||||
/* #undef HAVE_HISTORY_H */
|
||||
/* #undef HAVE_READLINE_HISTORY_H */
|
||||
|
||||
/* this is meant to handle the condition where the system has readline
|
||||
* capabilities, but no history. Unfortunately, it isn't as simple as
|
||||
* testing for the existance of -lhistory, since newer -lreadline seems to
|
||||
* include the -lhistory library, but newer readline.h doesn't
|
||||
*/
|
||||
#if defined(HAVE_LIBREADLINE)
|
||||
# if !defined(HAVE_HISTORY_H) || !defined(HAVE_READLINE_HISTORY_H)
|
||||
# define NO_HISTORY_H
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define HAVE_SYS_SELECT_H
|
||||
#define HAVE_TERMIOS_H
|
||||
|
Reference in New Issue
Block a user