diff options
Diffstat (limited to 'lib/readline/examples/histexamp.c')
-rw-r--r-- | lib/readline/examples/histexamp.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/readline/examples/histexamp.c b/lib/readline/examples/histexamp.c index eceb66df..fa0de1be 100644 --- a/lib/readline/examples/histexamp.c +++ b/lib/readline/examples/histexamp.c @@ -1,4 +1,14 @@ -main () +#include <stdio.h> + +#ifdef READLINE_LIBRARY +# include "history.h" +#else +# include <readline/history.h> +#endif + +main (argc, argv) + int argc; + char **argv; { char line[1024], *t; int len, done = 0; |