diff options
Diffstat (limited to 'contrib/libreadline/examples/rltest.c')
-rw-r--r-- | contrib/libreadline/examples/rltest.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/libreadline/examples/rltest.c b/contrib/libreadline/examples/rltest.c index 453f8ec2ada2..6250f900d42d 100644 --- a/contrib/libreadline/examples/rltest.c +++ b/contrib/libreadline/examples/rltest.c @@ -4,20 +4,20 @@ /* */ /* **************************************************************** */ -/* - * Remove the next line if you're compiling this against an installed - * libreadline.a - */ -#define READLINE_LIBRARY - #if defined (HAVE_CONFIG_H) #include <config.h> #endif #include <stdio.h> #include <sys/types.h> -#include "readline.h" -#include "history.h" + +#ifdef READLINE_LIBRARY +# include "readline.h" +# include "history.h" +#else +# include <readline/readline.h> +# include <readline/history.h> +#endif extern HIST_ENTRY **history_list (); |