CNIOWindows: correct declaration (#1646)
This repairs the build on the CNIOWindows module on Windows. The `NIO` macro is unavailable in the definition (intentionally) and was being used accidentally.
This commit is contained in:
parent
e183143648
commit
cf9140a686
|
@ -16,13 +16,17 @@
|
|||
|
||||
#include "CNIOWindows.h"
|
||||
|
||||
int NIO(sendmmsg)(SOCKET s, NIO(mmsghdr) *msgvec, unsigned int vlen, int flags) {
|
||||
#include <assert.h>
|
||||
|
||||
int CNIOWindows_sendmmsg(SOCKET s, CNIOWindows_mmsghdr *msgvec, unsigned int vlen,
|
||||
int flags) {
|
||||
assert(!"sendmmsg not implemented");
|
||||
abort();
|
||||
}
|
||||
|
||||
int NIO(recvmmsg)(SOCKET s, NIO(mmsghdr) *msgvec, unsigned int vlen, int flags,
|
||||
struct timespec *timeout) {
|
||||
int CNIOWindows_recvmmsg(SOCKET s, CNIOWindows_mmsghdr *msgvec,
|
||||
unsigned int vlen, int flags,
|
||||
struct timespec *timeout) {
|
||||
assert(!"recvmmsg not implemented");
|
||||
abort();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue