support PLC bus and opcua API
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
#include <xs_waitqueue.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
typedef unsigned long NfdsType;
|
||||
|
||||
#if !defined(POLLIN) && !defined(POLLOUT)
|
||||
|
||||
#define POLLIN 0x001
|
||||
@@ -36,8 +38,6 @@
|
||||
|
||||
#define POLLMASK_DEFAULT (POLLIN | POLLOUT )
|
||||
|
||||
typedef unsigned long NfdsType;
|
||||
|
||||
struct pollfd
|
||||
{
|
||||
int fd;
|
||||
@@ -54,6 +54,7 @@ typedef struct Pollreq
|
||||
} pollreqType;
|
||||
|
||||
void PollAdd(WaitQueueType *wq, pollreqType *req);
|
||||
#ifndef poll
|
||||
int poll(struct pollfd *fds, NfdsType nfds, int timeout);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user