* getpass.c (fflush_unlocked, flockfile, funlockfile)
authorSimon Josefsson <simon@josefsson.org>
Tue, 12 Oct 2004 14:04:18 +0000 (14:04 +0000)
committerSimon Josefsson <simon@josefsson.org>
Tue, 12 Oct 2004 14:04:18 +0000 (14:04 +0000)
(fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
to real functions.

lib/ChangeLog
lib/getpass.c

index 91e7fef..ea42767 100644 (file)
@@ -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.
index bc8eb44..78f21e0 100644 (file)
 # 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