Mercurial > hg > octave-nkf > gnulib-hg
changeset 13963:e1862c329298
getlogin_r: Add missing declaration on HP-UX 11.
* m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
declared also when it exists as a function.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 20 Dec 2010 12:22:17 +0100 |
parents | d08e3bdd07f9 |
children | 4375e072858f |
files | ChangeLog m4/getlogin_r.m4 |
diffstat | 2 files changed, 12 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-12-20 Bruno Haible <bruno@clisp.org> + + getlogin_r: Add missing declaration on HP-UX 11. + * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is + declared also when it exists as a function. + 2010-12-20 Bruno Haible <bruno@clisp.org> wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
--- a/m4/getlogin_r.m4 +++ b/m4/getlogin_r.m4 @@ -1,4 +1,4 @@ -#serial 7 +#serial 8 # Copyright (C) 2005-2007, 2009-2010 Free Software Foundation, Inc. # @@ -20,14 +20,15 @@ dnl getlogin_r(). AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_DECLS_ONCE([getlogin_r]) + if test $ac_cv_have_decl_getlogin_r = no; then + HAVE_DECL_GETLOGIN_R=0 + fi + AC_CHECK_FUNCS_ONCE([getlogin_r]) if test $ac_cv_func_getlogin_r = no; then AC_LIBOBJ([getlogin_r]) gl_PREREQ_GETLOGIN_R - AC_CHECK_DECLS_ONCE([getlogin_r]) - if test $ac_cv_have_decl_getlogin_r = no; then - HAVE_DECL_GETLOGIN_R=0 - fi fi ])