mirror of
https://github.com/curl/curl.git
synced 2026-05-13 21:26:20 +03:00
socketpair: fix compilation when USE_UNIX_SOCKETS is not defined
Closes #13666
This commit is contained in:
parent
df4a8c7661
commit
7c5ad6d278
1 changed files with 10 additions and 1 deletions
|
|
@ -38,7 +38,16 @@
|
|||
#define wakeup_write swrite
|
||||
#define wakeup_read sread
|
||||
#define wakeup_close sclose
|
||||
#define wakeup_create(p) Curl_socketpair(AF_UNIX, SOCK_STREAM, 0, p)
|
||||
|
||||
#if defined(USE_UNIX_SOCKETS) && defined(HAVE_SOCKETPAIR)
|
||||
#define SOCKET_FAMILY AF_UNIX
|
||||
#elif !defined(HAVE_SOCKETPAIR)
|
||||
#define SOCKET_FAMILY 0 /* not used */
|
||||
#else
|
||||
#error "unsupported unix domain and socketpair build combo"
|
||||
#endif
|
||||
|
||||
#define wakeup_create(p) Curl_socketpair(SOCKET_FAMILY, SOCK_STREAM, 0, p)
|
||||
|
||||
#endif /* HAVE_PIPE */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue