Mercurial > hg > octave-lyh > gnulib-hg
changeset 2928:7ae462ff7f49
(setusershell) [HAVE_FSEEKO]: Use fseek0.
Patch by Ulrich Drepper.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 28 Oct 2000 07:47:04 +0000 |
parents | 9065aac1a5e8 |
children | 5a05f89b0d80 |
files | lib/getusershell.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getusershell.c +++ b/lib/getusershell.c @@ -103,7 +103,13 @@ if (shellstream == NULL) shellstream = fopen (SHELLS_FILE, "r"); else - fseek (shellstream, 0L, 0); + { +#ifdef HAVE_FSEEKO + fseeko (shellstream, 0, 0); +#else + fseek (shellstream, 0L, 0); +#endif + } } /* Close the shells file. */