@@ -128,18 +128,6 @@ using ::fast_io::posix_clock_getres;
128128
129129using ::fast_io::native_mutex;
130130
131- using ::fast_io ::native_socklen_t;
132-
133- namespace this_thread
134- {
135- # if ((defined(_WIN32) && !defined(__WINE__)) && !defined(__CYGWIN__)) || (defined(__MSDOS__) || defined(__DJGPP__)) || defined(__wasi__) || (!defined(__SINGLE_THREAD__) && !defined(__NEWLIB__) && !defined(__MSDOS__) && __has_include(<pthread.h>))
136- using ::fast_io ::this_thread ::get_id;
137- using ::fast_io ::this_thread ::sleep_for;
138- using ::fast_io ::this_thread ::sleep_until;
139- using ::fast_io ::this_thread ::yield;
140- # endif
141- } // namespace this_thread
142-
143131using ::fast_io::native_readlinkat;
144132using ::fast_io::native_symlinkat;
145133using ::fast_io::native_unlinkat;
@@ -150,10 +138,13 @@ using ::fast_io::native_at_flags;
150138using ::fast_io::native_utimensat;
151139using ::fast_io::native_linkat;
152140
141+ #ifndef __wasm__
142+ using ::fast_io::native_socklen_t ;
153143using ::fast_io::posix_accept;
154144using ::fast_io::posix_connect;
155145using ::fast_io::posix_bind;
156146using ::fast_io::posix_listen;
147+ #endif
157148
158149using ::fast_io::begin;
159150using ::fast_io::end;
@@ -170,15 +161,17 @@ using ::fast_io::posix_file_status;
170161using ::fast_io::truncate;
171162
172163using ::fast_io::native_white_hole;
173- using ::fast_io ::native_socket_file;
174- using ::fast_io ::native_socket_io_observer;
175164
176165using ::fast_io::ipv4;
177166using ::fast_io::ipv6;
178167
168+ #ifndef __wasm__
169+ using ::fast_io::native_socket_file;
170+ using ::fast_io::native_socket_io_observer;
179171using ::fast_io::native_dns_file;
180172using ::fast_io::to_ip;
181173using ::fast_io::to_ip_address;
174+ #endif
182175
183176using ::fast_io::io_kernel;
184177
0 commit comments