diff options
author | Jan Beulich <jbeulich@novell.com> | 2008-02-25 13:15:16 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@gcc.gnu.org> | 2008-02-25 13:15:16 +0000 |
commit | 2b854e70a6cdbdc966c2299820dda0fb51e0ac30 (patch) | |
tree | f8822aed0af02051393fd319e00d42637baad098 /libstdc++-v3/acinclude.m4 | |
parent | 79ec5b5e7e109a49a00685f1d92b4b11ee68dece (diff) | |
download | gcc-2b854e70a6cdbdc966c2299820dda0fb51e0ac30.zip gcc-2b854e70a6cdbdc966c2299820dda0fb51e0ac30.tar.gz gcc-2b854e70a6cdbdc966c2299820dda0fb51e0ac30.tar.bz2 |
acinclude.m4: Also check for EIDRM and ETXTBSY.
2008-02-25 Jan Beulich <jbeulich@novell.com>
* acinclude.m4: Also check for EIDRM and ETXTBSY.
* configure: Re-generate.
* config/os/generic/error_constants.h (namespace posix_error):
Also wrap uses of EIDRM and ETXTBSY in conditionals.
* testsuite/19_diagnostics/headers/system_error/types_std_c++0x.cc:
Likewise.
From-SVN: r132622
Diffstat (limited to 'libstdc++-v3/acinclude.m4')
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index bd14d90..45c8ffd 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -1440,6 +1440,26 @@ AC_DEFUN([GLIBCXX_CHECK_SYSTEM_ERROR], [ if test x"$ac_system_error_13" = x"yes"; then AC_DEFINE(HAVE_ENOTSUP, 1, [Define if ENOTSUP exists.]) fi + + AC_MSG_CHECKING([for EIDRM]) + AC_CACHE_VAL(ac_system_error_14, [ + AC_TRY_COMPILE([#include <errno.h>], [ int i = EIDRM; ], + [ac_system_error_14=yes], [ac_system_error_14=no]) + ]) + AC_MSG_RESULT($ac_system_error_14) + if test x"$ac_system_error_14" = x"yes"; then + AC_DEFINE(HAVE_EIDRM, 1, [Define if EIDRM exists.]) + fi + + AC_MSG_CHECKING([for ETXTBSY]) + AC_CACHE_VAL(ac_system_error_15, [ + AC_TRY_COMPILE([#include <errno.h>], [ int i = ETXTBSY; ], + [ac_system_error_15=yes], [ac_system_error_15=no]) + ]) + AC_MSG_RESULT($ac_system_error_15) + if test x"$ac_system_error_15" = x"yes"; then + AC_DEFINE(HAVE_ETXTBSY, 1, [Define if ETXTBSY exists.]) + fi ]) dnl |