This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] g++ 4.3 broken on OpenBSD


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 =                          ENOTCONN,
      not_enough_memory =                      ENOMEM,
+
+#ifdef ENOTSUP
      not_supported =                          ENOTSUP,
+#else
+      not_supported =                          EOPNOTSUPP,
+#endif

 #ifdef _GLIBCXX_HAVE_ECANCELED
      operation_canceled =                     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.
>
> 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

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]