diff --git a/Dockerfile.full b/Dockerfile.full index e9f59a3..50b2dbb 100644 --- a/Dockerfile.full +++ b/Dockerfile.full @@ -26,7 +26,7 @@ COPY . 3proxy RUN cd 3proxy &&\ echo "">> Makefile.Linux &&\ echo PLUGINS = StringsPlugin TrafficPlugin PCREPlugin TransparentPlugin SSLPlugin>>Makefile.Linux &&\ - echo LIBS = -l:libcrypto.a -l:libssl.a -ldl >>Makefile.Linux &&\ + echo LIBS = -l:libssl.a -l:libcrypto.a -ldl >>Makefile.Linux &&\ make -f Makefile.Linux &&\ strip bin/3proxy &&\ strip bin/StringsPlugin.ld.so &&\ 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