diff options
author | Damien Miller <djm@mindrot.org> | 2001-01-04 09:07:12 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-01-04 09:07:12 +1100 |
commit | d54e55cf5c98bcc2d6397f7bfe4362c562d4515c (patch) | |
tree | 3d64c9f09c825f391cdf52ce7c1c535c1d9de820 /defines.h | |
parent | 3ad650a88d44bd189b1489256e872d561739e13a (diff) |
- (djm) Fix memory leak on systems with BROKEN_GETADDRINFO. Based on
work by Chris Vaughan <vaughan99@yahoo.com>
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -348,7 +348,13 @@ struct winsize { | |||
348 | 348 | ||
349 | #if defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO) | 349 | #if defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO) |
350 | # undef HAVE_GETADDRINFO | 350 | # undef HAVE_GETADDRINFO |
351 | #endif /* defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO) */ | 351 | #endif |
352 | #if defined(BROKEN_GETADDRINFO) && defined(HAVE_FREEADDRINFO) | ||
353 | # undef HAVE_FREEADDRINFO | ||
354 | #endif | ||
355 | #if defined(BROKEN_GETADDRINFO) && defined(HAVE_GAI_STRERROR) | ||
356 | # undef HAVE_GAI_STRERROR | ||
357 | #endif | ||
352 | 358 | ||
353 | #if !defined(HAVE_MEMMOVE) && defined(HAVE_BCOPY) | 359 | #if !defined(HAVE_MEMMOVE) && defined(HAVE_BCOPY) |
354 | # define memmove(s1, s2, n) bcopy((s2), (s1), (n)) | 360 | # define memmove(s1, s2, n) bcopy((s2), (s1), (n)) |