diff --git a/Makefile b/Makefile index fcf8a5820f2d16f90afba5113353a82a4e543eac..0472e169c6745f35d45681fefc9c54b4d56712a6 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,10 @@ endif LIBS+=$(AIOLIBS) +ifdef CONFIG_SOLARIS +LIBS+=-lsocket -lnsl -lresolv +endif + all: $(TOOLS) $(DOCS) recurse-all SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) diff --git a/nbd.c b/nbd.c index e9308ee0421c8bc65400bfe6789d4ae79ffa0b81..9bebe4a9bb573651948bd8449f9913b42e23bc9d 100644 --- a/nbd.c +++ b/nbd.c @@ -22,6 +22,9 @@ #include #include #include +#ifdef __sun__ +#include +#endif #include #include #include