diff options
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 0880c3f72..a6a2b1bc7 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -2919,7 +2919,7 @@ long gethostid(void) #define ETC_SHELLS "/etc/shells" static int shell_index; -static FILE *shell_fp; +static struct __sFILE64 *shell_fp; extern "C" char * getusershell () @@ -2938,7 +2938,7 @@ getusershell () static char buf[MAX_PATH]; int ch, buf_idx; - if (!shell_fp && !(shell_fp = fopen (ETC_SHELLS, "rt"))) + if (!shell_fp && !(shell_fp = fopen64 (ETC_SHELLS, "rt"))) { if (def_shells[shell_index]) return strcpy (buf, def_shells[shell_index++]); |