]> git.pld-linux.org Git - packages/crossmingw64-gcc.git/blob - gcc-mingw64.patch
- updated to 6.4.0
[packages/crossmingw64-gcc.git] / gcc-mingw64.patch
1 --- gcc-6.4.0/libstdc++-v3/config/os/mingw32-w64/os_defines.h.orig      2016-01-04 15:30:50.652828000 +0100
2 +++ gcc-6.4.0/libstdc++-v3/config/os/mingw32-w64/os_defines.h   2018-07-29 09:27:59.179639951 +0200
3 @@ -62,6 +62,9 @@
4  // See libstdc++/20806.
5  #define _GLIBCXX_HAVE_DOS_BASED_FILESYSTEM 1
6  
7 +// See  libstdc++/37522.
8 +#define _GLIBCXX_HAVE_BROKEN_VSWPRINTF 1
9 +
10  // See libstdc++/43738
11  // On native windows targets there is no ioctl function. And the existing
12  // ioctlsocket function doesn't work for normal file-descriptors.
13 --- gcc-6.4.0/libstdc++-v3/config/os/mingw32-w64/error_constants.h.orig 2017-05-18 16:34:56.460210000 +0200
14 +++ gcc-6.4.0/libstdc++-v3/config/os/mingw32-w64/error_constants.h      2018-07-29 10:20:28.262937329 +0200
15 @@ -32,6 +32,7 @@
16  
17  #include <bits/c++config.h>
18  #include <cerrno>
19 +#include <psdk_inc/_wsa_errnos.h>
20  
21  namespace std _GLIBCXX_VISIBILITY(default)
22  {
23 @@ -41,10 +42,10 @@
24  // replaced by Winsock WSA-prefixed equivalents.
25    enum class errc
26      {
27 -      address_family_not_supported =           EAFNOSUPPORT,
28 -      address_in_use =                                 EADDRINUSE,
29 -      address_not_available =                  EADDRNOTAVAIL,
30 -      already_connected =                      EISCONN,
31 +      address_family_not_supported =           WSAEAFNOSUPPORT,
32 +      address_in_use =                                 WSAEADDRINUSE,
33 +      address_not_available =                  WSAEADDRNOTAVAIL,
34 +      already_connected =                      WSAEISCONN,
35        argument_list_too_long =                         E2BIG,
36        argument_out_of_domain =                         EDOM,
37        bad_address =                            EFAULT,
38 @@ -53,12 +54,12 @@
39        bad_message =                            EBADMSG,
40  #endif
41        broken_pipe =                            EPIPE,
42 -      connection_aborted =                     ECONNABORTED,
43 -      connection_already_in_progress =                 EALREADY,
44 -      connection_refused =                     ECONNREFUSED,
45 -      connection_reset =                       ECONNRESET,
46 +      connection_aborted =                     WSAECONNABORTED,
47 +      connection_already_in_progress =                 WSAEALREADY,
48 +      connection_refused =                     WSAECONNREFUSED,
49 +      connection_reset =                       WSAECONNRESET,
50        cross_device_link =                      EXDEV,
51 -      destination_address_required =           EDESTADDRREQ,
52 +      destination_address_required =           WSAEDESTADDRREQ,
53        device_or_resource_busy =                EBUSY,
54        directory_not_empty =                    ENOTEMPTY,
55        executable_format_error =                ENOEXEC,
56 @@ -66,7 +67,7 @@
57        file_too_large =                                 EFBIG,
58        filename_too_long =                      ENAMETOOLONG,
59        function_not_supported =                         ENOSYS,
60 -      host_unreachable =                       EHOSTUNREACH,
61 +      host_unreachable =                       WSAEHOSTUNREACH,
62  #ifdef _GLIBCXX_HAVE_EIDRM
63        identifier_removed =                     EIDRM,
64  #endif
65 @@ -77,11 +78,11 @@
66        invalid_seek =                           ESPIPE,
67        io_error =                               EIO,
68        is_a_directory =                                 EISDIR,
69 -      message_size =                           EMSGSIZE,
70 -      network_down =                           ENETDOWN,
71 -      network_reset =                          ENETRESET,
72 -      network_unreachable =                    ENETUNREACH,
73 -      no_buffer_space =                        ENOBUFS,
74 +      message_size =                           WSAEMSGSIZE,
75 +      network_down =                           WSAENETDOWN,
76 +      network_reset =                          WSAENETRESET,
77 +      network_unreachable =                    WSAENETUNREACH,
78 +      no_buffer_space =                        WSAENOBUFS,
79  #ifdef _GLIBCXX_HAVE_ECHILD
80        no_child_process =                       ECHILD,
81  #endif
82 @@ -95,7 +96,7 @@
83  #ifdef _GLIBCXX_HAVE_ENOMSG
84        no_message =                             ENOMSG,
85  #endif
86 -      no_protocol_option =                     ENOPROTOOPT,
87 +      no_protocol_option =                     WSAENOPROTOOPT,
88  #ifdef _GLIBCXX_HAVE_ENOSPC
89        no_space_on_device =                     ENOSPC,
90  #endif
91 @@ -107,21 +108,21 @@
92        no_such_file_or_directory =              ENOENT,
93        no_such_process =                        ESRCH,
94        not_a_directory =                        ENOTDIR,
95 -      not_a_socket =                           ENOTSOCK,
96 +      not_a_socket =                           WSAENOTSOCK,
97  #ifdef _GLIBCXX_HAVE_ENOSTR
98        not_a_stream =                           ENOSTR,
99  #endif
100 -      not_connected =                          ENOTCONN,
101 +      not_connected =                          WSAENOTCONN,
102        not_enough_memory =                      ENOMEM,
103  #ifdef _GLIBCXX_HAVE_ENOTSUP
104        not_supported =                          ENOTSUP,
105  #endif
106 -      operation_canceled =                     ECANCELED,
107 -      operation_in_progress =                  EINPROGRESS,
108 +//      operation_canceled =                   WSAECANCELLED, // winsock2 only
109 +      operation_in_progress =                  WSAEINPROGRESS,
110  #ifdef _GLIBCXX_HAVE_EPERM
111        operation_not_permitted =                EPERM,
112  #endif
113 -      operation_not_supported =                EOPNOTSUPP,
114 +      operation_not_supported =                WSAEOPNOTSUPP,
115  #ifdef _GLIBCXX_HAVE_EWOULDBLOCK
116        operation_would_block =                  EWOULDBLOCK,
117  #endif
118 @@ -129,8 +130,8 @@
119        owner_dead =                             EOWNERDEAD,
120  #endif
121        permission_denied =                      EACCES,
122 -      protocol_error =                                 EPROTO,
123 -      protocol_not_supported =                         EPROTONOSUPPORT,
124 +//      protocol_error =                               EPROTO,
125 +      protocol_not_supported =                         WSAEPROTONOSUPPORT,
126        read_only_file_system =                  EROFS,
127        resource_deadlock_would_occur =          EDEADLK,
128        resource_unavailable_try_again =                 EAGAIN,
129 @@ -150,11 +151,11 @@
130        too_many_files_open_in_system =          ENFILE,
131        too_many_files_open =                    EMFILE,
132        too_many_links =                                 EMLINK,
133 -      too_many_symbolic_link_levels =          ELOOP,
134 +      too_many_symbolic_link_levels =          WSAELOOP,
135  #ifdef _GLIBCXX_HAVE_EOVERFLOW
136        value_too_large =                        EOVERFLOW,
137  #endif
138 -      wrong_protocol_type =                    EPROTOTYPE
139 +      wrong_protocol_type =                    WSAEPROTOTYPE
140     };
141  
142  _GLIBCXX_END_NAMESPACE_VERSION
This page took 0.077566 seconds and 3 git commands to generate.