diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/history.c | 2 | ||||
-rw-r--r-- | src/history.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/history.c b/src/history.c index 82c94fe..a63658c 100644 --- a/src/history.c +++ b/src/history.c @@ -74,7 +74,7 @@ static struct history { } histories[hist_COUNT]; #ifndef HAVE_GETLINE -static ssize_t +ssize_t getline(char **lineptr, size_t *n, FILE *f) { size_t ofs; diff --git a/src/history.h b/src/history.h index 308e212..193874d 100644 --- a/src/history.h +++ b/src/history.h @@ -29,6 +29,10 @@ enum { hist_NONE=0, hist_COMMAND, hist_SHELLCMD, /* must be last, do not use, for length only: */ hist_COUNT}; +#ifndef HAVE_GETLINE +ssize_t getline (char **lineptr, size_t *n, FILE *f); +#endif + void history_load (void); void history_save (void); void history_resize (int size); |