Windows Support

This commit is contained in:
Joseph Henry
2017-10-09 17:56:40 -07:00
parent 06a09edd6d
commit 2900f1f995
28 changed files with 486 additions and 241 deletions

View File

@@ -33,11 +33,14 @@
#ifndef LIBZT_H
#define LIBZT_H
#include <poll.h>
#include <stdlib.h>
#include <stdint.h>
#include <vector>
#if defined(__linux__)
#include <poll.h>
#endif
#include "Debug.hpp"
#include "Defs.h"
@@ -440,7 +443,9 @@ int zts_close(int fd);
* @param timeout
* @return
*/
#if defined(__linux__)
int zts_poll(struct pollfd *fds, nfds_t nfds, int timeout);
#endif
/**
* @brief Monitor multiple file descriptors, waiting until one or more of the file descriptors become "ready"