diff options
author | Jim Meyering <jim@meyering.net> | 2000-10-28 07:47:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-10-28 07:47:04 +0000 |
commit | 13a9a251d88b7929940a11043b35d751d8fa3d77 (patch) | |
tree | 1201d82164b015428e3ba4c7adf22bd96674a9c8 /lib/getusershell.c | |
parent | f0da6c980d6cf2c401bc7d9695011e18ee8778ba (diff) | |
download | coreutils-13a9a251d88b7929940a11043b35d751d8fa3d77.tar.xz |
(setusershell) [HAVE_FSEEKO]: Use fseek0.
Patch by Ulrich Drepper.
Diffstat (limited to 'lib/getusershell.c')
-rw-r--r-- | lib/getusershell.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/getusershell.c b/lib/getusershell.c index 35f72dbcb..75163ac26 100644 --- a/lib/getusershell.c +++ b/lib/getusershell.c @@ -103,7 +103,13 @@ setusershell () 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. */ |