summaryrefslogtreecommitdiffstats
path: root/usr.bin/whois/Makefile
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-04-23 06:01:10 +0000
committerpst <pst@FreeBSD.org>1996-04-23 06:01:10 +0000
commitceb677462bce88b520fd1537aee505485cc9de55 (patch)
tree8525796ee9362ba09bd4af27203294c4ae815bce /usr.bin/whois/Makefile
parentd73d5ee489af9ec86a8ea3826fd9d5b014f3d84f (diff)
downloadFreeBSD-src-ceb677462bce88b520fd1537aee505485cc9de55.zip
FreeBSD-src-ceb677462bce88b520fd1537aee505485cc9de55.tar.gz
Add support for SOCKS if enabled.
Remove a useless bind() call (why did that ever get in there?)
Diffstat (limited to 'usr.bin/whois/Makefile')
-rw-r--r--usr.bin/whois/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/whois/Makefile b/usr.bin/whois/Makefile
index e6ab08f..3b6e7aa 100644
--- a/usr.bin/whois/Makefile
+++ b/usr.bin/whois/Makefile
@@ -2,4 +2,11 @@
PROG= whois
+.if defined(SOCKS)
+CFLAGS+=-DSOCKS
+CFLAGS+=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten \
+ -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect
+LDADD+= -lsocks
+.endif
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud