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:
Saleem Abdulrasool 2020-09-24 02:29:05 -07:00 committed by GitHub
parent e183143648
commit cf9140a686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -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();
}