diff options
author | Simon Josefsson <simon@josefsson.org> | 2004-11-04 18:06:54 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2004-11-04 18:06:54 +0000 |
commit | c1b37f932cdb0c31092babb0748819bfcbe75666 (patch) | |
tree | 0adbe18a9cee470ef5bd65cf19aad2142234d344 | |
parent | 9f22ff61e97335ab1b34d8430eb2f517b75f2d86 (diff) | |
download | gnutls-c1b37f932cdb0c31092babb0748819bfcbe75666.tar.gz |
Update.
-rw-r--r-- | gl/getpass.c | 30 | ||||
-rw-r--r-- | gl/m4/getpass.m4 | 1 |
2 files changed, 21 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 diff --git a/gl/m4/getpass.m4 b/gl/m4/getpass.m4 index 0c4d8050f2..8d682242c9 100644 --- a/gl/m4/getpass.m4 +++ b/gl/m4/getpass.m4 @@ -34,5 +34,6 @@ AC_DEFUN([gl_FUNC_GETPASS_GNU], # Prerequisites of lib/getpass.c. AC_DEFUN([gl_PREREQ_GETPASS], [ AC_CHECK_HEADERS_ONCE(stdio_ext.h) + AC_CHECK_DECLS_ONCE([fflush_unlocked flockfile fputs_unlocked funlockfile putc_unlocked]) : ]) |