projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb523b1
)
(setusershell) [HAVE_FSEEKO]: Use fseek0.
author
Jim Meyering
<jim@meyering.net>
Sat, 28 Oct 2000 07:47:04 +0000
(07:47 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 28 Oct 2000 07:47:04 +0000
(07:47 +0000)
Patch by Ulrich Drepper.
lib/getusershell.c
patch
|
blob
|
history
diff --git
a/lib/getusershell.c
b/lib/getusershell.c
index 35f72dbcbd763ffa9026e10f71bc81617df706d0..75163ac26f9e35268de4a0c739a39be4e4381dd0 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. */