From f832d1dc896970a721f6895903cba093c3d26bf9 Mon Sep 17 00:00:00 2001 From: papadave Date: Tue, 9 Jan 2018 07:57:05 +0800 Subject: [PATCH] Fix typo, and clean up --- configure | 4 ++-- src/libproxychains.c | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/configure b/configure index dfaf9dd..ad5325a 100755 --- a/configure +++ b/configure @@ -34,7 +34,7 @@ issolaris() { [ "`uname -s`" = SunOS ] } -isgunld() { +isgnuld() { ld --version 2> /dev/null | grep -Fq GNU } @@ -190,7 +190,7 @@ elif isbsd ; then make_cmd=gmake elif issolaris; then echo "CFLAGS+=-DIS_SOLARIS -D__EXTENSIONS__" >> config.mak - if ! isgunld; then + if ! isgnuld; then echo "NO_AS_NEEDED=" >> config.mak echo "LD_SET_SONAME=-Wl,-h," >> config.mak fi diff --git a/src/libproxychains.c b/src/libproxychains.c index 20d8c49..75ffcb8 100644 --- a/src/libproxychains.c +++ b/src/libproxychains.c @@ -38,12 +38,6 @@ #include "core.h" #include "common.h" -#ifdef IS_SOLARIS -#ifndef s6_addr32 -#define s6_addr32 _S6_un._S6_u32 -#endif -#endif - #define satosin(x) ((struct sockaddr_in *) &(x)) #define SOCKADDR(x) (satosin(x)->sin_addr.s_addr) #define SOCKADDR_2(x) (satosin(x)->sin_addr)