summaryrefslogtreecommitdiff
path: root/lib/getpass.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-11-03 07:44:15 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-11-03 07:44:15 +0000
commit5a5367474b6808f488d4b0e74ba30bebfdc882f3 (patch)
treef52115c051496683e41fd9f7c1f9ad4935e66940 /lib/getpass.c
parent47bcfc54da3d26655f0c151f214a29cf58711765 (diff)
downloadcoreutils-5a5367474b6808f488d4b0e74ba30bebfdc882f3.tar.xz
Sync from gnulib.
Diffstat (limited to 'lib/getpass.c')
-rw-r--r--lib/getpass.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/lib/getpass.c b/lib/getpass.c
index 78f21e019..4f520aef3 100644
--- a/lib/getpass.c
+++ b/lib/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