diff --git a/utils/Makefile b/utils/Makefile
index 0f4cd4409eb2c42cb3de0e8ece9860ed088fd8bf..a07a39da78c5340dbc228284cf7463778d765bfd 100755
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -32,6 +32,7 @@ endif
 
 ifeq (${OSARCH},SunOS)
   SOL=../strcompat.o
+  SOLLIBS=-lsocket -lnsl
 endif
 
 all: depend $(TARGET)
@@ -66,7 +67,7 @@ smsq: smsq.o
 	$(CC) $(CFLAGS) -o smsq ${SOL} smsq.o -lpopt
 
 streamplayer: streamplayer.o
-	$(CC) $(CFLAGS) -o streamplayer ${SOL} streamplayer.o
+	$(CC) $(CFLAGS) -o streamplayer ${SOL} streamplayer.o ${SOLLIBS}
 
 ifneq ($(wildcard .depend),)
   include .depend