diff options
Diffstat (limited to 'win/inspircd_win32wrapper.h')
-rw-r--r-- | win/inspircd_win32wrapper.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 8b418928d..a6ca0da6e 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -198,3 +198,11 @@ inline ssize_t writev(int fd, const WindowsIOVec* iov, int count) return sent; return -1; } + +// This wrapper is just so we don't need to do #ifdef _WIN32 everywhere in the socket code. It is +// not actually used and does not need to be the same size as sockaddr_un on UNIX systems. +struct sockaddr_un +{ + ADDRESS_FAMILY sun_family; + char sun_path[6]; +}; |