From: Michael Wallner Date: Sun, 20 Dec 2020 14:05:09 +0000 (+0100) Subject: ci: attempt to fix win builds X-Git-Tag: 1.1.0-beta1~28 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7eb608bb69da0e37fc7edb1c60fb4a207f32b76f;p=m6w6%2Flibmemcached ci: attempt to fix win builds --- diff --git a/include/libmemcached-1/platform.h b/include/libmemcached-1/platform.h index bfc05e35..c0223392 100644 --- a/include/libmemcached-1/platform.h +++ b/include/libmemcached-1/platform.h @@ -56,6 +56,12 @@ typedef long int ssize_t; # include # include typedef SOCKET memcached_socket_t; +# if !defined POLLIN +# define POLLIN (POLLRDNORM|POLLRDBAND) +# endif +# if !defined POLLOUT +# define POLLOUT (POLLWRNORM) +# endif #else typedef int memcached_socket_t; #endif // _WIN32 diff --git a/src/p9y/p9y.cpp b/src/p9y/p9y.cpp index 1c5c4ac9..c9927495 100644 --- a/src/p9y/p9y.cpp +++ b/src/p9y/p9y.cpp @@ -1,6 +1,7 @@ #include "libgen.hpp" #if defined P9Y_NEED_BASENAME # if defined _WIN32 +# include char *basename(const char *filename) { static char base[_MAX_PATH * 2], ext[_MAX_PATH], *ptr; (void) _splitpath_s(filename, NULL, 0, NULL, 0, base, _MAX_PATH, ext, _MAX_PATH);