diff options
author | vincent <> | 2002-07-01 20:12:40 +0000 |
---|---|---|
committer | vincent <> | 2002-07-01 20:12:40 +0000 |
commit | 413ab616d1486b513d0f43e119e6ffbb1a1e921f (patch) | |
tree | 19e29cd6de61ddfe3f84b7d948b53f7c3d303278 | |
parent | 2684b388137a84a7908486fee2ca8825bb711ed0 (diff) | |
download | openbsd-413ab616d1486b513d0f43e119e6ffbb1a1e921f.tar.gz openbsd-413ab616d1486b513d0f43e119e6ffbb1a1e921f.tar.bz2 openbsd-413ab616d1486b513d0f43e119e6ffbb1a1e921f.zip |
define SUN_LEN if it is not already for portability.
millert made the same suggestion, so i guess it's ok ;)
-rw-r--r-- | src/usr.bin/nc/netcat.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: netcat.c,v 1.50 2002/07/01 15:40:40 vincent Exp $ */ | 1 | /* $OpenBSD: netcat.c,v 1.51 2002/07/01 20:12:40 vincent Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> | 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> |
4 | * | 4 | * |
@@ -50,6 +50,11 @@ | |||
50 | #include <unistd.h> | 50 | #include <unistd.h> |
51 | #include <fcntl.h> | 51 | #include <fcntl.h> |
52 | 52 | ||
53 | #ifndef SUN_LEN | ||
54 | #define SUN_LEN(su) \ | ||
55 | (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) | ||
56 | #endif | ||
57 | |||
53 | #define PORT_MAX 65535 | 58 | #define PORT_MAX 65535 |
54 | 59 | ||
55 | /* Command Line Options */ | 60 | /* Command Line Options */ |