Skip some test on cygwin since interface is not available

This commit is contained in:
amai 2018-09-29 16:49:12 +02:00
parent ecd2ba2ece
commit 5c0fd0d5b4
1 changed files with 4 additions and 0 deletions

View File

@ -8,7 +8,9 @@
//
#include <string.h>
#ifndef __CYGWIN__
#include <sys/epoll.h>
#endif
void bufferAccessOutOfBounds()
{
@ -39,6 +41,7 @@ void leakReturnValNotUsed()
return;
}
#ifndef __CYGWIN__
int nullPointer_epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)
{
// no warning is expected
@ -51,3 +54,4 @@ int nullPointer_epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)
// can be NULL.
return epoll_ctl(epfd, EPOLL_CTL_DEL, fd, NULL);
}
#endif