(setusershell) [HAVE_FSEEKO]: Use fseek0.
authorJim Meyering <jim@meyering.net>
Sat, 28 Oct 2000 07:47:04 +0000 (07:47 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 28 Oct 2000 07:47:04 +0000 (07:47 +0000)
Patch by Ulrich Drepper.

lib/getusershell.c

index 35f72dbcbd763ffa9026e10f71bc81617df706d0..75163ac26f9e35268de4a0c739a39be4e4381dd0 100644 (file)
@@ -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. */