From: Chong Yidong Date: Thu, 14 Aug 2008 00:51:41 +0000 (+0000) Subject: Undefine HAVE_RES_INIT, which appears to be harmful on OS X. X-Git-Tag: emacs-pretest-23.0.90~3504 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2a10213c123b477d34e90a6757b431d80b5f4791;p=emacs.git Undefine HAVE_RES_INIT, which appears to be harmful on OS X. --- diff --git a/src/s/darwin.h b/src/s/darwin.h index 068531df146..1aefb6bbf09 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h @@ -154,17 +154,20 @@ along with GNU Emacs. If not, see . */ /* Definitions for how to compile & link. */ #ifdef HAVE_NS -/* XXX: lresolv is here because configure when testing #undefs res_init, - a macro in /usr/include/resolv.h for res_9_init, not in stdc lib. */ -#define LIBS_NSGUI -framework AppKit -lresolv +#define LIBS_NSGUI -framework AppKit #define SYSTEM_PURESIZE_EXTRA 200000 #define HEADERPAD_EXTRA 6C8 - #else /* !HAVE_NS */ #define LIBS_NSGUI #define HEADERPAD_EXTRA 690 #endif /* !HAVE_NS */ +/* On Darwin, res_init appears not to be useful: see bug#562 and + http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html */ + +#undef HAVE_RES_INIT +#undef HAVE_LIBRESOLV + /* The -headerpad option tells ld (see man page) to leave room at the end of the header for adding load commands. Needed for dumping. 0x690 is the total size of 30 segment load commands (at 56