# HG changeset patch # User Bruno Haible # Date 1270931416 -7200 # Node ID 44c840887cadd5200fd1ee975e20a69aa24f27ab # Parent 69f672943274e56e7c9f3cbed3a6a2dbe6be1d86 fchownat: Fix a C++ test error on Solaris 8. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-10 Bruno Haible + + fchownat: Fix a C++ test error on Solaris 8. + * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if + the function does not exist. + 2010-04-10 Bruno Haible vasnprintf: Add more tests. diff --git a/m4/openat.m4 b/m4/openat.m4 --- a/m4/openat.m4 +++ b/m4/openat.m4 @@ -1,4 +1,4 @@ -# serial 27 +# serial 28 # See if we need to use our replacement for Solaris' openat et al functions. dnl Copyright (C) 2004-2010 Free Software Foundation, Inc. @@ -106,11 +106,11 @@ AC_CHECK_FUNC([fchownat], [gl_FUNC_FCHOWNAT_DEREF_BUG([REPLACE_FCHOWNAT=1 AC_DEFINE([FCHOWNAT_NOFOLLOW_BUG], [1], [Define to 1 if your - platform has fchownat, but it cannot perform lchown tasks.])])], + platform has fchownat, but it cannot perform lchown tasks.]) + if test $REPLACE_CHOWN = 1; then + REPLACE_FCHOWNAT=1 + fi])], [HAVE_FCHOWNAT=0]) - if test $REPLACE_CHOWN = 1; then - REPLACE_FCHOWNAT=1 - fi if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then AC_LIBOBJ([fchownat]) fi