diff options
Diffstat (limited to 'contrib/libreadline/examples/histexamp.c')
-rw-r--r-- | contrib/libreadline/examples/histexamp.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/libreadline/examples/histexamp.c b/contrib/libreadline/examples/histexamp.c index eceb66d..fa0de1b 100644 --- a/contrib/libreadline/examples/histexamp.c +++ b/contrib/libreadline/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; |