From: Simon Josefsson <simon@josefsson.org>
Date: Tue, 12 Oct 2004 14:04:18 +0000 (+0000)
Subject: * getpass.c (fflush_unlocked, flockfile, funlockfile)
X-Git-Tag: cvs-readonly~3844
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ce44c2c324999ec117e55d5971a4f69137bc3f08;p=gnulib.git

* getpass.c (fflush_unlocked, flockfile, funlockfile)
(fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
to real functions.
---

diff --git a/lib/ChangeLog b/lib/ChangeLog
index 91e7fef8de..ea42767d27 100644
--- 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.
diff --git a/lib/getpass.c b/lib/getpass.c
index bc8eb4498d..78f21e0197 100644
--- 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