summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanXiao <xn212516@163.com>2013-05-07 14:59:03 +0800
committerantirez <antirez@gmail.com>2014-08-12 11:30:46 +0200
commit951eefae3c7a318860fd78ac60ec0b4c77aab10f (patch)
tree87b240e5bf1cdee68f81e4fb4513910e57a53a4f
parentb57a4d07a210fd0c99d5a3cd286ffdcf9d639ad9 (diff)
downloadredis-951eefae3c7a318860fd78ac60ec0b4c77aab10f.tar.gz
Use resolv library in Solaris
For some Solaris flavours, the inet_aton in in resolv library. Not linking this library will introduce link error. Improves compatability with older Solaris and still works on new Solaris. Closes #1092
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index ca7a0be8a..b2d25228f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -58,7 +58,7 @@ ifeq ($(uname_S),SunOS)
# SunOS
INSTALL=cp -pf
FINAL_CFLAGS+= -D__EXTENSIONS__ -D_XPG6
- FINAL_LIBS+= -ldl -lnsl -lsocket -lpthread
+ FINAL_LIBS+= -ldl -lnsl -lsocket -lresolv -lpthread
else
ifeq ($(uname_S),Darwin)
# Darwin (nothing to do)