projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(setusershell) [HAVE_FSEEKO]: Use fseek0.
[gnulib.git]
/
lib
/
getusershell.c
diff --git
a/lib/getusershell.c
b/lib/getusershell.c
index
35f72db
..
75163ac
100644
(file)
--- 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. */