From 870e34d77c3b435db8ac0c69298158f321849da0 Mon Sep 17 00:00:00 2001 From: Matyas Markovics Date: Fri, 5 Feb 2021 12:56:15 +0100 Subject: [PATCH] Define _set_errno if not present on the compile-platform (e.g. Linux) --- src/proxy.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/proxy.h b/src/proxy.h index 85beda4..aee4fc6 100644 --- a/src/proxy.h +++ b/src/proxy.h @@ -116,6 +116,10 @@ void daemonize(void); #ifdef _WIN32 #define strcasecmp stricmp #define strncasecmp strnicmp +#else +#ifndef _set_errno +#define _set_errno(x) (errno = x) +#endif #endif #ifndef SOCKET_ERROR