Cygwin: Allow to build without experimental AF_UNIX code by default

Introduce __WITH_AF_UNIX preprocessor flag to enable the new code

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2018-06-26 16:31:17 +02:00
parent 17918cc6a6
commit 6c55be9dbb
8 changed files with 36 additions and 1 deletions

View File

@@ -951,6 +951,8 @@ class af_unix_shmem_t
struct ucred *peer_cred () { return &_peer_cred; }
};
#ifdef __WITH_AF_UNIX
class fhandler_socket_unix : public fhandler_socket
{
protected:
@@ -1110,6 +1112,8 @@ class fhandler_socket_unix : public fhandler_socket
}
};
#endif /* __WITH_AF_UNIX */
class fhandler_base_overlapped: public fhandler_base
{
static HANDLE asio_done;
@@ -2631,6 +2635,9 @@ typedef union
char __serial[sizeof (fhandler_serial)];
char __socket_inet[sizeof (fhandler_socket_inet)];
char __socket_local[sizeof (fhandler_socket_local)];
#ifdef __WITH_AF_UNIX
char __socket_unix[sizeof (fhandler_socket_unix)];
#endif /* __WITH_AF_UNIX */
char __termios[sizeof (fhandler_termios)];
char __pty_common[sizeof (fhandler_pty_common)];
char __pty_slave[sizeof (fhandler_pty_slave)];