summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-01-27 23:07:43 +1100
committerDamien Miller <djm@mindrot.org>2015-01-27 23:07:43 +1100
commit69ff64f69615c2a21c97cb5878a0996c21423257 (patch)
tree7f23013fc82127b196266ba17b33cf0559a84564 /regress
parent358964f3082fb90b2ae15bcab07b6105cfad5a43 (diff)
compile on systems without TCP_MD5SIG (e.g. OSX)
Diffstat (limited to 'regress')
-rw-r--r--regress/netcat.c2
1 files changed, 2 insertions, 0 deletions
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)
1144{ 1144{
1145 int x = 1; 1145 int x = 1;
1146 1146
1147#ifdef TCP_MD5SIG
1147 if (Sflag) { 1148 if (Sflag) {
1148 if (setsockopt(s, IPPROTO_TCP, TCP_MD5SIG, 1149 if (setsockopt(s, IPPROTO_TCP, TCP_MD5SIG,
1149 &x, sizeof(x)) == -1) 1150 &x, sizeof(x)) == -1)
1150 err(1, NULL); 1151 err(1, NULL);
1151 } 1152 }
1153#endif
1152 if (Dflag) { 1154 if (Dflag) {
1153 if (setsockopt(s, SOL_SOCKET, SO_DEBUG, 1155 if (setsockopt(s, SOL_SOCKET, SO_DEBUG,
1154 &x, sizeof(x)) == -1) 1156 &x, sizeof(x)) == -1)