File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.51 1997/01/25 21:58:08 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.52 1997/01/25 22:16:36 scrappy Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
35
35
#else
36
36
# ifdef HAVE_READLINE_H
37
37
# include <readline.h>
38
- # ifdef HAVE_HISTORY_H
38
+ # ifndef NO_HISTORY
39
39
# include <history.h>
40
40
# endif
41
41
# else
42
42
# include <readline/readline.h>
43
- # ifdef HAVE_READLINE_HISTORY_H
43
+ # ifndef NO_HISTORY
44
44
# include <readline/history.h>
45
45
# endif
46
46
# endif
Original file line number Diff line number Diff line change 23
23
/* #undef HAVE_HISTORY_H */
24
24
/* #undef HAVE_READLINE_HISTORY_H */
25
25
26
+ /* this is meant to handle the condition where the system has readline
27
+ * capabilities, but no history. Unfortunately, it isn't as simple as
28
+ * testing for the existance of -lhistory, since newer -lreadline seems to
29
+ * include the -lhistory library, but newer readline.h doesn't
30
+ */
31
+ #if defined(HAVE_LIBREADLINE )
32
+ # if !defined(HAVE_HISTORY_H ) || !defined(HAVE_READLINE_HISTORY_H )
33
+ # define NO_HISTORY_H
34
+ # endif
35
+ #endif
26
36
27
37
#define HAVE_SYS_SELECT_H
28
38
#define HAVE_TERMIOS_H
You can’t perform that action at this time.
0 commit comments