fnet.c

Simple C networking library
git clone git://git.finwo.net/lib/fnet.c
Log | Files | Refs | README

commit 1bc6cf0cccea98971be4e9ce86aed8f82253cc7e
parent 0d7b3c08fdb3c7ea1109a976369b72255b67d1a3
Author: Yersa Nordman <yersa@finwo.nl>
Date:   Sun, 22 Oct 2023 21:35:36 +0200

Attempt using piscisaureus/wepoll for windows epoll polyfill

Diffstat:
Mpackage.ini | 3+--
Msrc/fnet.c | 3++-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package.ini b/package.ini @@ -1,10 +1,9 @@ [dependencies] +piscisaureus/wepoll=https://raw.githubusercontent.com/finwo/dep-repository/main/piscisaureus/wepoll/package.ini tidwall/buf=https://raw.githubusercontent.com/finwo/dep-repository/main/tidwall/buf/package.ini - [export] config.mk=config.mk include/finwo/fnet.h=src/fnet.h - [package] deps=lib name=finwo/fnet diff --git a/src/fnet.c b/src/fnet.c @@ -9,15 +9,16 @@ extern "C" { #include <fcntl.h> #include <sys/types.h> -#include <sys/epoll.h> #ifdef _WIN32 +#include "piscisaureus/wepoll.h" #include <sys/timeb.h> #include <winsock2.h> #include <Ws2tcpip.h> #else #include <netdb.h> #include <netinet/tcp.h> +#include <sys/epoll.h> #include <sys/socket.h> #include <sys/time.h> #include <unistd.h>