From 69ff64f69615c2a21c97cb5878a0996c21423257 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 27 Jan 2015 23:07:43 +1100 Subject: [PATCH] compile on systems without TCP_MD5SIG (e.g. OSX) --- regress/netcat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/regress/netcat.c b/regress/netcat.c index bffaade58..84efe1182 100644 --- a/regress/netcat.c +++ b/regress/netcat.c @@ -1144,11 +1144,13 @@ set_common_sockopts(int s) { int x = 1; +#ifdef TCP_MD5SIG if (Sflag) { if (setsockopt(s, IPPROTO_TCP, TCP_MD5SIG, &x, sizeof(x)) == -1) err(1, NULL); } +#endif if (Dflag) { if (setsockopt(s, SOL_SOCKET, SO_DEBUG, &x, sizeof(x)) == -1)