diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-14 17:03:02 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-14 17:03:02 +0000 |
commit | f78fa257b7592de18d982014211769ca7c8924df (patch) | |
tree | 764a3963c92dd5f036ee47531383f80648caecee /libstdc++-v3/acinclude.m4 | |
parent | 7e507322dc5a06590b17700cdb55eb71e6921710 (diff) | |
download | gcc-f78fa257b7592de18d982014211769ca7c8924df.tar.gz |
2008-02-14 Benjamin Kosnik <bkoz@redhat.com>
* config/os/generic/error_constants.h (posix_errno): Guard
not_supported use of ENOTSUP.
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Add check for ENOTSUP
for OpenBSD.
* aclocal.m4: Regenerate.
* configure: Rengerate.
* config.h.in: Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132319 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/acinclude.m4')
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index c4ccb2a14c1..bd14d90126e 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -1430,6 +1430,16 @@ AC_DEFUN([GLIBCXX_CHECK_SYSTEM_ERROR], [ if test x"$ac_system_error_12" = x"yes"; then AC_DEFINE(HAVE_EOVERFLOW, 1, [Define if EOVERFLOW exists.]) fi + + AC_MSG_CHECKING([for ENOTSUP]) + AC_CACHE_VAL(ac_system_error_13, [ + AC_TRY_COMPILE([#include <errno.h>], [ int i = ENOTSUP; ], + [ac_system_error_13=yes], [ac_system_error_13=no]) + ]) + AC_MSG_RESULT($ac_system_error_13) + if test x"$ac_system_error_13" = x"yes"; then + AC_DEFINE(HAVE_ENOTSUP, 1, [Define if ENOTSUP exists.]) + fi ]) dnl |