Mercurial > hg > octave-nkf > gnulib-hg
changeset 5342:91203255b217
* getpass.c (fflush_unlocked, flockfile, funlockfile)
(fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
to real functions.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Tue, 12 Oct 2004 14:04:18 +0000 |
parents | 426fd0964cbd |
children | eae956a8e0ec |
files | lib/ChangeLog lib/getpass.c |
diffstat | 2 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2004-10-12 Simon Josefsson <jas@extundo.com> + + * getpass.c (fflush_unlocked, flockfile, funlockfile) + (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map + to real functions. + 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org> * vsnprintf.h: New file.
--- a/lib/getpass.c +++ b/lib/getpass.c @@ -57,6 +57,17 @@ # define funlockfile(s) _IO_funlockfile (s) #elif USE_UNLOCKED_IO # include "unlocked-io.h" +#else +# undef fflush_unlocked +# define fflush_unlocked(x) fflush (x) +# undef flockfile +# define flockfile(x) ((void) 0) +# undef funlockfile +# define funlockfile(x) ((void) 0) +# undef fputs_unlocked +# define fputs_unlocked(str,stream) fputs (str, stream) +# undef putc_unlocked +# define putc_unlocked(c,stream) putc (c, stream) #endif #if _LIBC