X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgetpass.c;h=17d513720ea020d3e11b6a6f75026ca33a328c55;hb=5709a7204dfd9a4fedf2cdbaa341bc6c540dadf3;hp=70851b3e1a579afc436907363949f51e32bb6a12;hpb=0632e115747ff96e93330c88f536d7354a7ce507;p=gnulib.git diff --git a/lib/getpass.c b/lib/getpass.c index 70851b3e1..17d513720 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2001, 2003, 2004, 2005, 2006 Free Software +/* Copyright (C) 1992-2001, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -29,10 +29,11 @@ #include -#if HAVE_STDIO_EXT_H -# include -#endif -#if !HAVE___FSETLOCKING +#if HAVE_DECL___FSETLOCKING && HAVE___FSETLOCKING +# if HAVE_STDIO_EXT_H +# include +# endif +#else # define __fsetlocking(stream, type) /* empty */ #endif @@ -40,8 +41,6 @@ # include #endif -#include "getline.h" - #if USE_UNLOCKED_IO # include "unlocked-io.h" #else @@ -141,7 +140,7 @@ getpass (const char *prompt) == fileno (out). The POSIX restrictions are tricky and change from POSIX version to POSIX version, so play it safe and invoke fseek even if in != out. */ - fseek (out, 0, SEEK_CUR); + fseeko (out, 0, SEEK_CUR); if (buf != NULL) {