getaddrinfo() related problems
[email protected] Thu, 13 Jun 2002 08:05:11 +0100
| Newsgroups | gmane.emacs.macintosh.user |
|---|---|
| Organization | none |
| Message-ID | <[email protected]> |
In using Emacs with Gnus, I see frequent failures to look up hostnames. In particular, news.gmane.org almost always fails. Reading in other places that the getaddrinfo() implementation in MacOSX is poor, I applied the following patch to avoid using it. Things seem much better now - I've not had a single failure since. Does anyone else see similar problems ? Index: darwin.h =================================================================== RCS file: /cvsroot/emacs/emacs/src/s/darwin.h,v retrieving revision 1.1 diff -u -r1.1 darwin.h --- darwin.h 26 Apr 2002 23:39:06 -0000 1.1 +++ darwin.h 13 Jun 2002 07:04:36 -0000 @@ -1,5 +1,5 @@ /* System description header file for Darwin (Mac OS X). - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001, 2002 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -276,6 +276,8 @@ /* Do not define matherr in floatfns.c. */ #define NO_MATHERR +/* Up to 10.1.5 getaddrinfo() is suspect ([email protected]) */ +#undef HAVE_GETADDRINFO /* This prevents a compilation error in xfaces.c: struct kboard * is used in a function protocol the first time this type appears in the _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink