summaryrefslogtreecommitdiff
path: root/gl/getpass.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2004-11-04 18:06:54 +0000
committerSimon Josefsson <simon@josefsson.org>2004-11-04 18:06:54 +0000
commitc1b37f932cdb0c31092babb0748819bfcbe75666 (patch)
tree0adbe18a9cee470ef5bd65cf19aad2142234d344 /gl/getpass.c
parent9f22ff61e97335ab1b34d8430eb2f517b75f2d86 (diff)
downloadgnutls-c1b37f932cdb0c31092babb0748819bfcbe75666.tar.gz
Update.
Diffstat (limited to 'gl/getpass.c')
-rw-r--r--gl/getpass.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/gl/getpass.c b/gl/getpass.c
index 78f21e0197..4f520aef3b 100644
--- a/gl/getpass.c
+++ b/gl/getpass.c
@@ -58,16 +58,26 @@
#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)
+# 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