diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-10 17:48:04 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-10 17:48:04 +0000 |
commit | 1312f2db8ed90464e73acdcc07bb1aae92964345 (patch) | |
tree | b8e55a20699c6308ccd20030f9c737140bf6171d /win/inspircd_win32wrapper.h | |
parent | 3151262b41f011e0f5707565461ce46447f12b07 (diff) |
* Fix inspsocket to not include uio.h on windows.
* Wrap writev and some structs to fix inspsocket compile on win.
* Fix a few compile errors due to latest trunk changes in win32wrapper code.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11822 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win/inspircd_win32wrapper.h')
-rw-r--r-- | win/inspircd_win32wrapper.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index a1eba11e9..6b068adea 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -100,6 +100,7 @@ typedef unsigned __int32 uint32_t; #include <process.h> #include <stdio.h> #include <algorithm> +#include <io.h> #ifdef ENABLE_CRASHDUMPS #include <DbgHelp.h> @@ -214,6 +215,7 @@ typedef unsigned long long uint64_t; typedef signed char int8_t; typedef signed long int32_t; typedef signed long long int64_t; +typedef signed long ssize_t; /* Shared memory allocation functions */ void * ::operator new(size_t iSize); @@ -226,6 +228,15 @@ class ServerConfig; /* Look up the nameserver in use from the registry on windows */ CoreExport std::string FindNameServerWin(); +/* no uio.h on win, but win has alternatives in io.h rest is wrapped here */ +#define IOV_MAX 1024 +struct iovec +{ + size_t iov_len; + void* iov_base; +}; +CoreExport ssize_t writev(int fd, const struct iovec* iov, int iovcnt); + /* Clear a windows console */ CoreExport void ClearConsole(); |