summaryrefslogtreecommitdiff
path: root/win/inspircd_win32wrapper.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-07-24 11:01:50 +0100
committerPeter Powell <petpow@saberuk.com>2018-07-24 11:05:51 +0100
commit7a24867d97c6ffe75b155d96dedb11b30b904a33 (patch)
tree753604a4b12eb8c31c4c2279153365b3e66d9784 /win/inspircd_win32wrapper.h
parentef48486b09587a73568a35a1dfe9e3cab7a44ebb (diff)
Fix building on Windows.
Diffstat (limited to 'win/inspircd_win32wrapper.h')
-rw-r--r--win/inspircd_win32wrapper.h8
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];
+};