From fc8cc42e8f6418fb4fba7eabc021dad6404c58c7 Mon Sep 17 00:00:00 2001 From: Bartosz Sosnowski Date: Wed, 3 Aug 2016 16:54:56 +0200 Subject: [PATCH] win: fix compilation on mingw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds missing define for UNLEN. PR-URL: https://github.com/libuv/libuv/pull/968 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: Saúl Ibarra Corretgé --- src/win/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/win/util.c b/src/win/util.c index 84a0e467..4a2e5012 100644 --- a/src/win/util.c +++ b/src/win/util.c @@ -54,6 +54,10 @@ /* The number of nanoseconds in one second. */ #define UV__NANOSEC 1000000000 +/* Max user name length, from iphlpapi.h */ +#ifndef UNLEN +# define UNLEN 256 +#endif /* Cached copy of the process title, plus a mutex guarding it. */ static char *process_title;