Danny, this can't work on OpenBSD. please apply this patch.

Index: libstdc++-v3/config/os/generic/error_constants.h
===================================================================
--- libstdc++-v3/config/os/generic/error_constants.h    (revision 132311)
+++ libstdc++-v3/config/os/generic/error_constants.h    (working copy)
@@ -117,7 +117,12 @@

       not_connected =3D                                ENOTCONN,
       not_enough_memory =3D                    ENOMEM,
+
+#ifdef ENOTSUP
       not_supported =3D                                ENOTSUP,
+#else
+      not_supported =3D                                EOPNOTSUPP,
+#endif

 #ifdef _GLIBCXX_HAVE_ECANCELED
       operation_canceled =3D                   ECANCELED,

> Author: dannysmith
> Date: Fri Sep  7 04:18:40 2007
> New Revision: 128228
>
> URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128228
> Log:
>       PR libstdc++/33203
>       * configure.host (error_constants_dir):  New variable,
>       defaulting to os/generic.
>       ( mingw32*): Overide default.
>       * configure.ac (ERROR_CONSTANTS_SRCDIR): New.
>       * configure: Regenerate.
>       * include/Makefile.am (host_headers): Add
>       $(ERROR_CONSTANTS_SRCDIR)/error_constants.h .
>       * include/Makefile.in: Regenerate.
>       * include/std/system_error (enum posix_errno): Remove.
>       Include <bits/error_constants.h> instead.
>       * config/os/mingw32/error_constants.h: New.
>       * config/os/generic/error_constants.h: New.
>=20
> Added:
>     trunk/libstdc++-v3/config/os/generic/error_constants.h
>     trunk/libstdc++-v3/config/os/mingw32/error_constants.h
> Modified:
>     trunk/libstdc++-v3/ChangeLog
>     trunk/libstdc++-v3/configure
>     trunk/libstdc++-v3/configure.ac
>     trunk/libstdc++-v3/configure.host
>     trunk/libstdc++-v3/include/Makefile.am
>     trunk/libstdc++-v3/include/Makefile.in
>     trunk/libstdc++-v3/include/std/system_error

Dongsheng

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply via email to