X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgetpass.c;h=4f520aef3bfc3ae82dd7bca3c5f999da7d379cd7;hb=2306ca2f8c0498f1c576ac53feaca869167d8220;hp=9ac01f22776749ffa4ab77f862d850a7d1ebceb8;hpb=942fa9f9bad04cc75862b72fabc8f4ff617cdafb;p=gnulib.git diff --git a/lib/getpass.c b/lib/getpass.c index 9ac01f227..4f520aef3 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2001, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1992-2001, 2003, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify @@ -55,8 +55,29 @@ #if _LIBC # define flockfile(s) _IO_flockfile (s) # define funlockfile(s) _IO_funlockfile (s) -#else +#elif USE_UNLOCKED_IO # include "unlocked-io.h" +#else +# if !HAVE_DECL_FFLUSH_UNLOCKED +# undef fflush_unlocked +# define fflush_unlocked(x) fflush (x) +# endif +# if !HAVE_DECL_FLOCKFILE +# undef flockfile +# define flockfile(x) ((void) 0) +# endif +# if !HAVE_DECL_FUNLOCKFILE +# undef funlockfile +# define funlockfile(x) ((void) 0) +# endif +# if !HAVE_DECL_FPUTS_UNLOCKED +# undef fputs_unlocked +# define fputs_unlocked(str,stream) fputs (str, stream) +# endif +# if !HAVE_DECL_PUTC_UNLOCKED +# undef putc_unlocked +# define putc_unlocked(c,stream) putc (c, stream) +# endif #endif #if _LIBC