diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/inspircd_win32wrapper.cpp | 5 | ||||
-rw-r--r-- | win/inspircd_win32wrapper.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp index eb73378f2..d0ca50af8 100644 --- a/win/inspircd_win32wrapper.cpp +++ b/win/inspircd_win32wrapper.cpp @@ -91,6 +91,11 @@ int insp_inet_pton(int af, const char *src, void *dst) return rv; } +int insp_setsockopt(int sockfd, int level, int optname, void *optval, int optlen) +{ + return setsockopt(sockfd, level, optname, (char*)optval, optlen); +} + void setcolor(int color_code) { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), color_code); diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 6b068adea..86a7baffe 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -132,6 +132,9 @@ CoreExport const char * insp_inet_ntop(int af, const void * src, char * dst, soc #define inet_pton insp_inet_pton #define inet_ntop insp_inet_ntop +/* slightly different format on setsockopt */ +CoreExport int insp_setsockopt(int sockfd, int level, int optname, void *optval, int optlen); + /* Safe printf functions aren't defined in VC2003 */ #define snprintf _snprintf #define vsnprintf _vsnprintf |