diff options
author | nectar <nectar@FreeBSD.org> | 2002-09-15 04:23:20 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-09-15 04:23:20 +0000 |
commit | a0732e9360e7fd21a2175f288c2e3b56ed4c425a (patch) | |
tree | cd6f170ff90f26885247cdc37745e2507f189152 /lib/libc/net/gethostbydns.c | |
parent | cff87abbac5243f0a34923de8c9a99a54a663adb (diff) | |
download | FreeBSD-src-a0732e9360e7fd21a2175f288c2e3b56ed4c425a.zip FreeBSD-src-a0732e9360e7fd21a2175f288c2e3b56ed4c425a.tar.gz |
Backout the increase of MAXPACKET from 1024 to 65536: it
broke pthreads.
Reported by: mbr, tjr
Diffstat (limited to 'lib/libc/net/gethostbydns.c')
-rw-r--r-- | lib/libc/net/gethostbydns.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index 479cc4a..1044727 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -103,7 +103,11 @@ static void addrsort(char **, int); static void dprintf(char *, int) __printflike(1, 0); #endif -#define MAXPACKET 65536 +#if PACKETSZ > 1024 +#define MAXPACKET PACKETSZ +#else +#define MAXPACKET 1024 +#endif typedef union { HEADER hdr; |