Fix typo, and clean up

pull/212/head
papadave 2018-01-09 07:57:05 +08:00
parent e20e0e8b5d
commit f832d1dc89
2 changed files with 2 additions and 8 deletions

4
configure vendored
View File

@ -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

View File

@ -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)