From 413ab616d1486b513d0f43e119e6ffbb1a1e921f Mon Sep 17 00:00:00 2001 From: vincent <> Date: Mon, 1 Jul 2002 20:12:40 +0000 Subject: define SUN_LEN if it is not already for portability. millert made the same suggestion, so i guess it's ok ;) --- src/usr.bin/nc/netcat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index c0eb685d02..c5df372210 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.50 2002/07/01 15:40:40 vincent Exp $ */ +/* $OpenBSD: netcat.c,v 1.51 2002/07/01 20:12:40 vincent Exp $ */ /* * Copyright (c) 2001 Eric Jackson * @@ -50,6 +50,11 @@ #include #include +#ifndef SUN_LEN +#define SUN_LEN(su) \ + (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) +#endif + #define PORT_MAX 65535 /* Command Line Options */ -- cgit v1.2.3-55-g6feb