summaryrefslogtreecommitdiff
path: root/usr.bin/whois/Makefile
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-11-26 22:59:22 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-11-26 22:59:22 +0000
commit634cd633629ad13698a7042e4ceac2e0c9b4d4a8 (patch)
tree07f31258e7a6de3244e7e1d3682d2a017b7dc22e /usr.bin/whois/Makefile
parentae8a234af8879e97f27622bf3af2202b850b82c3 (diff)
socks support that should have gotten committed with the whois.c socks changes
Diffstat (limited to 'usr.bin/whois/Makefile')
-rw-r--r--usr.bin/whois/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/whois/Makefile b/usr.bin/whois/Makefile
index 8ddf62321b2..15fbbd27514 100644
--- a/usr.bin/whois/Makefile
+++ b/usr.bin/whois/Makefile
@@ -1,5 +1,12 @@
-# $OpenBSD: Makefile,v 1.3 1997/09/21 11:52:04 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 1999/11/26 22:59:21 millert Exp $
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>