commit | 69ff64f69615c2a21c97cb5878a0996c21423257 | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Tue Jan 27 23:07:43 2015 +1100 |
committer | Damien Miller <djm@mindrot.org> | Tue Jan 27 23:07:43 2015 +1100 |
tree | 7f23013fc82127b196266ba17b33cf0559a84564 | |
parent | 358964f3082fb90b2ae15bcab07b6105cfad5a43 [diff] [blame] |
compile on systems without TCP_MD5SIG (e.g. OSX)
diff --git a/regress/netcat.c b/regress/netcat.c index bffaade..84efe11 100644 --- a/regress/netcat.c +++ b/regress/netcat.c
@@ -1144,11 +1144,13 @@ { 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)