File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -537,6 +537,7 @@ ipc_socket_accept (
537
537
#endif
538
538
} while (ipc_retry_syscall (client_socket ));
539
539
540
+ #ifndef HOST_WIN32
540
541
#if !HAVE_ACCEPT4 || !defined(SOCK_CLOEXEC )
541
542
#if defined(FD_CLOEXEC )
542
543
if (client_socket != -1 )
@@ -545,6 +546,7 @@ ipc_socket_accept (
545
546
fcntl (client_socket , F_SETFD , FD_CLOEXEC );
546
547
}
547
548
#endif
549
+ #endif
548
550
#endif
549
551
DS_EXIT_BLOCKING_PAL_SECTION ;
550
552
return client_socket ;
@@ -632,7 +634,7 @@ ipc_socket_recv (
632
634
while (continue_recv && bytes_to_read - total_bytes_read > 0 ) {
633
635
current_bytes_read = recv (
634
636
s ,
635
- buffer_cursor ,
637
+ ( char * ) buffer_cursor ,
636
638
bytes_to_read - total_bytes_read ,
637
639
0 );
638
640
if (ipc_retry_syscall (current_bytes_read ))
@@ -666,7 +668,7 @@ ipc_socket_send (
666
668
while (continue_send && bytes_to_write - total_bytes_written > 0 ) {
667
669
current_bytes_written = send (
668
670
s ,
669
- buffer_cursor ,
671
+ ( const char * ) buffer_cursor ,
670
672
bytes_to_write - total_bytes_written ,
671
673
0 );
672
674
if (ipc_retry_syscall (current_bytes_written ))
You can’t perform that action at this time.
0 commit comments