From: Ken Raeburn Date: Fri, 4 Jul 2003 20:49:06 +0000 (+0000) Subject: darwin build can't compile util/et test program X-Git-Tag: krb5-1.4-beta1~826 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=560431b781bf79c7cdf0b1d5df14023811189910;p=krb5.git darwin build can't compile util/et test program The autoconf tests correctly determine that sys_nerr exists, and that no declaration is needed. The test_et.c code checks the wrong condition, though, and the system header declaration of sys_nerr conflicts with the one in that source file. (The native one is const.) * test_et.c: Conditionalize sys_nerr declaration on NEED_SYS_ERRLIST, not HAVE_SYS_ERRLIST. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15670 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index b2929c55c..1f43ce031 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,8 @@ +2003-07-04 Kenneth Raeburn + + * test_et.c: Conditionalize sys_nerr declaration on + NEED_SYS_ERRLIST, not HAVE_SYS_ERRLIST. + 2003-06-12 Alexandra Ellwood * error_table.h, et_c.awk, et_c.pl, et_h.awk, et_c.awk: Removed Mac OS support because it prevents darwin builds from getting com error diff --git a/src/util/et/test_et.c b/src/util/et/test_et.c index a9d545787..1089c2166 100644 --- a/src/util/et/test_et.c +++ b/src/util/et/test_et.c @@ -7,7 +7,7 @@ /* XXX Not part of official public API. */ extern const char *error_table_name (errcode_t); -#ifdef HAVE_SYS_ERRLIST +#ifdef NEED_SYS_ERRLIST extern int sys_nerr; #endif